Skip to content

Commit dce4cb1

Browse files
#RI-4650 - ignore blank lines in bulk actions
1 parent 5ba2a43 commit dce4cb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

redisinsight/api/src/modules/bulk-actions/bulk-import.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ export class BulkImportService {
106106
batchResults.push(this.executeBatch(client, batch));
107107
batch = [];
108108
}
109-
110-
batch.push([command.toLowerCase(), args]);
109+
if (command) {
110+
batch.push([command.toLowerCase(), args]);
111+
}
111112
} catch (e) {
112113
parseErrors += 1;
113114
}

0 commit comments

Comments
 (0)