Skip to content

Commit b1fe485

Browse files
committed
fix: bug fix as per sonar cloud
1 parent 85d1108 commit b1fe485

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

bin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { version } from "../package.json"
1414

1515
async function run(argv: Array<string>): Promise<void> {
1616
try {
17-
if (rover_helpers.npmrootTest()) {
17+
if (!rover_helpers.npmrootTest()) {
1818
throw new Error(cliConfig.globalError)
1919
}
2020
const commandErrors = cliConfig.commandError(argv)

src/roverCLI/roverGenerateCLI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export async function addComponentCLI() {
9090
console.log(JSON.stringify(template))
9191
await rover_addComponent.addComponents(template)
9292
}
93-
export async function addModuleCLI() {
93+
export async function addModuleCLI(): Promise<void> {
9494
const res = await roverADD()
9595
let template: IroveraddModule = <IroveraddModule>{}
9696
const app_name = res["appname"]

src/utilities/cliUtil.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@ export const inputString = async function (
8080
else message = `${messages} should have only alphanumeric values`
8181
}
8282
}
83-
8483
if (message !== "") return message
8584
else return true
8685
},
8786
},
8887
])
89-
9088
return { ...takeInput }
9189
}
9290

0 commit comments

Comments
 (0)