Skip to content

Commit 4fd1163

Browse files
committed
Format
1 parent 3518fcc commit 4fd1163

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

bin/sql-formatter-cli.cjs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,12 @@ class SqlFormatterCli {
132132

133133
async readFile(filename) {
134134
try {
135-
136-
137-
return promisify(fs.readFile)(filename, { encoding: 'utf-8' })
138-
} catch (e) {
139-
140-
135+
return promisify(fs.readFile)(filename, { encoding: 'utf-8' });
136+
} catch (e) {
141137
this.exitWhenIOError(e, filename);
142138
console.error('An unknown error has occurred, please file a bug report at:');
143139
console.log('https://github.com/sql-formatter-org/sql-formatter/issues\n');
144140
throw e;
145-
146141
}
147142
}
148143

0 commit comments

Comments
 (0)