Skip to content

Commit

Permalink
Merge pull request #27 from jy95/short-bug-fix
Browse files Browse the repository at this point in the history
fix: missing precondition in KEYSEPARATOR_CHECK
  • Loading branch information
jy95 authored Oct 6, 2021
2 parents adb9db8 + c9df48d commit 0860f12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/checks/commons/keySeparator_check.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// lodash methodes
import isString from 'lodash/isString';

const KEYSEPARATOR_CHECK = async (argv: any) => {
let keySeparator = argv.keySeparator as any;
let check = [
() => keySeparator.length !== 1,
() => isString(keySeparator) && keySeparator.length !== 1,
() => keySeparator === true,
].some((pred) => pred());
if (check) {
Expand Down

0 comments on commit 0860f12

Please sign in to comment.