From 5ccc7c59528885ae7729197df3dfa00f924a2b3f Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Mon, 6 Jan 2020 18:57:00 +0100 Subject: [PATCH] fixed wrong line dumps --- src/domain/Script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/Script.ts b/src/domain/Script.ts index b4e4853e..556a0b77 100644 --- a/src/domain/Script.ts +++ b/src/domain/Script.ts @@ -10,7 +10,7 @@ export class Script extends BaseEntity implements IScript { private static ensureCodeHasUniqueLines(name: string, code: string): void { const lines = code.split('\n') - .map((line) => this.mayBeUniqueLine(line)); + .filter((line) => this.mayBeUniqueLine(line)); if (lines.length === 0) { return; }