Skip to content

Commit

Permalink
remove unnecessary short-circuit from privilege threshold input value…
Browse files Browse the repository at this point in the history
… parse operation
  • Loading branch information
Oleg Valter committed Aug 21, 2023
1 parent 56912ce commit 8400a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/privileges.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $(() => {
const type = $input.data('type');

// incorrect input values will cause rawValue to be NaN
const rawValue = parseFloat($input.val() || '')
const rawValue = parseFloat($input.val())

const value = Number.isNaN(rawValue) ? null : rawValue;

Expand Down

0 comments on commit 8400a35

Please sign in to comment.