Skip to content

Commit

Permalink
fixed wrong line dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
undergroundwires committed Jan 6, 2020
1 parent aaea47e commit 5ccc7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domain/Script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class Script extends BaseEntity<string> 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;
}
Expand Down

0 comments on commit 5ccc7c5

Please sign in to comment.