Skip to content

Commit

Permalink
fix(results): source window size resolving
Browse files Browse the repository at this point in the history
- Fix incorrect Math method
  • Loading branch information
AriPerkkio committed Nov 6, 2020
1 parent b08c2e6 commit caa6236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine/worker-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function mergeMessagesWithSource(
}

const sourceLines = result.source ? result.source.split('\n') : [];
const sourceLinesPadding = Math.abs(SOURCE_WINDOW_SIZE / 2);
const sourceLinesPadding = Math.floor(SOURCE_WINDOW_SIZE / 2);

return [
...all,
Expand Down

0 comments on commit caa6236

Please sign in to comment.