Skip to content

Commit

Permalink
Fix lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Nov 20, 2024
1 parent 3ca8328 commit 49b435a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clients/js/src/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ enum CustomPath {
export const Path = {
...InternalPath,
...CustomPath,
};
} as const;

// eslint-disable-next-line @typescript-eslint/no-redeclare
export type Path = InternalPath | CustomPath;

export function buildPath(features: Path[]) {
let path = 0;

// eslint-disable-next-line no-restricted-syntax
for (const feature of features) {
if (feature != Path.RerollMetadata) {
if (feature !== Path.RerollMetadata) {
// eslint-disable-next-line no-bitwise
path |= 1 << feature;
}
}
Expand Down

0 comments on commit 49b435a

Please sign in to comment.