Skip to content

Commit

Permalink
chore: fix sonar
Browse files Browse the repository at this point in the history
Signed-off-by: Iliya Savov <isavov@users.noreply.github.com>
  • Loading branch information
isavov committed Jan 8, 2024
1 parent 2a26b7c commit d06b889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/CLIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class CLIService implements IService{
const verbose = CLIService.resolveVerboseLevel(argv.verbose as string);
const timestamp = argv.timestamp as string;
const enableDebug = argv.enableDebug as boolean;
const workDir = FileSystemUtils.parseWorkDir(argv.workdir) as string;
const workDir = FileSystemUtils.parseWorkDir(argv.workdir as string);

const currentArgv: CLIOptions = {
accounts,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/FileSystemUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class FileSystemUtils{
directories.forEach(dir => FileSystemUtils.ensureDirectoryExists(dir)); // creating those directories ensures we'll have permissions to delete them on cleanup
}

public static parseWorkDir(workdir: any): string {
public static parseWorkDir(workdir: string): string {
let workdirPath = workdir;
if (workdirPath.startsWith('~')) {
workdirPath = join(homedir(), workdirPath.slice(1));
Expand Down

0 comments on commit d06b889

Please sign in to comment.