Skip to content

Commit b8d2c21

Browse files
committed
Linting
1 parent 9bfeb29 commit b8d2c21

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

β€Žscripts/testBaseUrl.jsβ€Ž

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@ let BASE_URL = "http://localhost:4444";
88

99
// environment variable
1010
if (process.env.BASE_URL) {
11-
BASE_URL = process.env.BASE_URL
11+
BASE_URL = process.env.BASE_URL;
1212
}
1313

1414
// local config file
1515
if (fs.existsSync(localConfigPath)) {
1616
try {
17-
const localConfig = JSON.parse(
18-
fs.readFileSync(localConfigPath, "utf8")
19-
);
17+
const localConfig = JSON.parse(fs.readFileSync(localConfigPath, "utf8"));
2018

2119
if (localConfig && localConfig.BASE_URL) {
2220
BASE_URL = localConfig.BASE_URL;
23-
}
21+
}
2422
} catch (err) {
25-
console.warn(
26-
"Invalid testBaseUrl.local.json, using default BASE_URL"
27-
);
23+
console.warn("Invalid testBaseUrl.local.json, using default BASE_URL");
2824
}
2925
}
30-
module.exports = { BASE_URL };
26+
module.exports = { BASE_URL };

0 commit comments

Comments
Β (0)