Skip to content

Commit

Permalink
style: remove unreferenced variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Dec 12, 2018
1 parent 1d104d3 commit b9872bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bin/commands/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type LogFilterConfigurationType = {|
+jqExpression: string
|};

let consequentLinePrinted = 0;
let lastLinePrinterLinesAgo = 0;
let printNextLines = 0;
let buffer = [];
Expand All @@ -47,7 +46,6 @@ const filterLog = (configuration: LogFilterConfigurationType, line: string, call
if (data) {
result = buffer.slice(-1 * lastLinePrinterLinesAgo - 1, -1).join('\n') + '\n' + data + '\n';

consequentLinePrinted++;
lastLinePrinterLinesAgo = 0;
printNextLines = configuration.context;
} else {
Expand All @@ -59,7 +57,6 @@ const filterLog = (configuration: LogFilterConfigurationType, line: string, call
result = '';
}

consequentLinePrinted = 0;
lastLinePrinterLinesAgo++;
}

Expand Down

0 comments on commit b9872bd

Please sign in to comment.