File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
rules/fileComposition/helpers/validateFile/helpers/validateRules/helpers Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11import { FinalError } from "errors/FinalError" ;
22
33export const finalErrorGuard = ( err : unknown ) : err is FinalError =>
4- ! ! ( ( err as FinalError ) . type === "final" ) ;
4+ ( err as FinalError ) . type === "final" ;
Original file line number Diff line number Diff line change @@ -11,12 +11,10 @@ export const isNameValid = ({
1111 formatWithoutReferences,
1212 name,
1313} : IsNameValidProps ) : boolean =>
14- Boolean (
15- formatWithoutReferences . some ( ( pattern ) => {
16- if ( isRegexInvalid ( pattern ) ) throw getInvalidRegexError ( pattern ) ;
14+ formatWithoutReferences . some ( ( pattern ) => {
15+ if ( isRegexInvalid ( pattern ) ) throw getInvalidRegexError ( pattern ) ;
1716
18- const regexp = new RegExp ( `^${ pattern } $` , "g" ) ;
17+ const regexp = new RegExp ( `^${ pattern } $` , "g" ) ;
1918
20- return regexp . test ( name ) ;
21- } ) ,
22- ) ;
19+ return regexp . test ( name ) ;
20+ } ) ;
You can’t perform that action at this time.
0 commit comments