Skip to content

Commit 45f9e6b

Browse files
committed
refactor: rename a variable
1 parent c891d9c commit 45f9e6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cli.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
const yaml = require('js-yaml');
44
const fs = require('fs');
55

6-
const file = 'endpoints.yaml';
7-
console.log('Read', file);
6+
const endpointsFile = 'endpoints.yaml';
7+
console.log('Read', endpointsFile);
88

99
try {
1010

11-
const content = fs.readFileSync(file, 'utf8');
11+
const content = fs.readFileSync(endpointsFile, 'utf8');
1212
const config = yaml.safeLoad(content);
1313
//console.debug(config);
1414
console.log('Generate code');
@@ -17,5 +17,5 @@ try {
1717
}
1818

1919
} catch (ex) {
20-
console.error('Failed to parse', file);
20+
console.error('Failed to parse', endpointsFile);
2121
}

0 commit comments

Comments
 (0)