Skip to content

Commit

Permalink
fix(lint): fix linting issues with bitMask functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed May 5, 2023
1 parent 79acb19 commit 00ee772
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/functions/bit-mask.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint no-bitwise:off */
export const bitMask = <Bit>(initialValue: number = 0, bits: Bit[] = []) => {
let value = initialValue

Expand Down Expand Up @@ -25,11 +26,11 @@ export const bitMask = <Bit>(initialValue: number = 0, bits: Bit[] = []) => {
return false
}

const set = (name: Bit, value: boolean) => {
const set = (name: Bit, newValue: boolean) => {
const index = bits.indexOf(name)

if (index !== -1) {
_set(index, value)
_set(index, newValue)
}
}

Expand Down

0 comments on commit 00ee772

Please sign in to comment.