Skip to content

Commit ae3b955

Browse files
committed
lint
1 parent 7b4952c commit ae3b955

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/compile.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ export async function importFile(
133133
// If flags === 1, putDoc returns new Storage definitions and the file must be a CLS
134134
const oldContent = new TextDecoder("utf-8").decode(await vscode.workspace.fs.readFile(file.uri));
135135
const oldContentArray = oldContent.split(/\r?\n/);
136-
const storage = Buffer.isBuffer(data.result.content) ? new TextDecoder().decode(data.result.content).split(/\r?\n/g) : data.result.content;
136+
const storage = Buffer.isBuffer(data.result.content)
137+
? new TextDecoder().decode(data.result.content).split(/\r?\n/g)
138+
: data.result.content;
137139
const newContentArray = updateStorage(oldContentArray, storage);
138140
if (oldContentArray.some((oldLine, index) => oldLine !== newContentArray[index])) {
139141
const EOL = ((<CurrentTextFile>file)?.eol ?? vscode.EndOfLine.LF) == vscode.EndOfLine.CRLF ? "\r\n" : "\n";

0 commit comments

Comments
 (0)