Skip to content

Commit

Permalink
codacy related improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-skalelabs committed Aug 14, 2024
1 parent 4472064 commit 6ce2b7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ function computeVerboseAlias(): TMapVerboseReverse {
const val = gMapVerbose[key as any];
const name = val;
if( name )
m[name] = parseInt( key as any );
m[name] = parseInt( key );
}
m.empty = m.silent ?? 0; // alias
m.none = m.silent ?? 0; // alias
Expand Down Expand Up @@ -1098,7 +1098,10 @@ export function verboseGet(): number {
return cc.toInteger( gVerboseLevel );
}
export function verboseSet( vl?: TLogArgument ): void {
gVerboseLevel = 0 + ( vl ? parseInt( vl.toString() ) : gVerboseLevelDefaultValue );
gVerboseLevel = 0 + ( vl
? parseInt( ( vl as string ).toString() )
: gVerboseLevelDefaultValue
);
}

export function verboseParse( s: string ): number {
Expand Down

0 comments on commit 6ce2b7f

Please sign in to comment.