Skip to content

Commit

Permalink
fix: canSkipSeed()
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 21, 2023
1 parent cf302bf commit e337e7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/shared-lib-node/src/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import path from 'node:path';
*/
export async function canSkipSeed(hashFilePath: string, ...paths: string[]): Promise<boolean> {
return (
!!Number(process.env.ALLOW_TO_SKIP_SEED) ||
(process.env.ALLOW_TO_SKIP_SEED || '').toLowerCase() === 'true' ||
(!!Number(process.env.ALLOW_TO_SKIP_SEED) || (process.env.ALLOW_TO_SKIP_SEED || '').toLowerCase() === 'true') &&
!(await updateHashFromFiles(hashFilePath, ...paths))
);
}
Expand Down

0 comments on commit e337e7a

Please sign in to comment.