Skip to content

Commit

Permalink
applying eslint suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ksierks committed Jan 9, 2023
1 parent 7931412 commit e17ee8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/webapp/resources/js/utilities/array-utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ function calculateChunkSize(arraySize: number) {
const MIN = 10;
const MAX = 100;
const estimated = Math.ceil(arraySize / 10);
return estimated < MIN ? MIN : estimated > MAX ? MAX : estimated;
const isAboveMax = estimated > MAX ? MAX : estimated;
return estimated < MIN ? MIN : isAboveMax;
}

0 comments on commit e17ee8d

Please sign in to comment.