Skip to content

Commit caa96b9

Browse files
committed
更新[EnvJs]: 修复一处语法错误 (非必要性更新)
1 parent 605fa09 commit caa96b9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Env.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Env(name, opts) {
2828
}
2929

3030
loaddata() {
31-
if (this.isNode) {
31+
if (this.isNode()) {
3232
this.fs = this.fs ? this.fs : require('fs')
3333
this.path = this.path ? this.path : require('path')
3434
const curDirDataFilePath = this.path.resolve(this.dataFile)
@@ -47,7 +47,7 @@ function Env(name, opts) {
4747
}
4848

4949
writedata() {
50-
if (this.isNode) {
50+
if (this.isNode()) {
5151
this.fs = this.fs ? this.fs : require('fs')
5252
this.path = this.path ? this.path : require('path')
5353
const curDirDataFilePath = this.path.resolve(this.dataFile)

‎Env.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)