fixed wrong line dumps

This commit is contained in:
undergroundwires
2020-01-06 18:57:00 +01:00
parent aaea47e7d1
commit 5ccc7c5952

View File

@@ -10,7 +10,7 @@ export class Script extends BaseEntity<string> implements IScript {
private static ensureCodeHasUniqueLines(name: string, code: string): void { private static ensureCodeHasUniqueLines(name: string, code: string): void {
const lines = code.split('\n') const lines = code.split('\n')
.map((line) => this.mayBeUniqueLine(line)); .filter((line) => this.mayBeUniqueLine(line));
if (lines.length === 0) { if (lines.length === 0) {
return; return;
} }