Skip to content

Commit

Permalink
remove rule to filter by file name
Browse files Browse the repository at this point in the history
  • Loading branch information
vadiminc committed Aug 14, 2023
1 parent b0f2b6d commit 844d090
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/actions/validators/file.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import fs from 'fs';
import * as path from 'path';

export const fileExistsValidator = (filePath: string, message = ''): boolean | string => {
filePath = sanitizePath(filePath);

if (!path.basename(filePath).includes('keystore') || !fs.existsSync(filePath.trim())) {
if (!fs.existsSync(filePath.trim())) {
return message || 'Couldn’t locate keystore file or directory.';
}
return true;
Expand Down

0 comments on commit 844d090

Please sign in to comment.