fixed wrong line dumps
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user