Skip to content

Commit 3f79d1d

Browse files
committed
fix: added proper naming convention
1 parent 7dbc956 commit 3f79d1d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/rover.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
type TcrudMethods = "put" | "get" | "post" | "delete" | "options"
2-
//type TroverLang = "node" | "python";
32
interface curdObject {
43
path: string
54
methods: Array<TcrudMethods>

src/roverCLI/roverGenerateCLI.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function createSAMCLI(): Promise<void> {
2828
const language = await util.languageChoice()
2929

3030
const template: IroverInput = await createModules(app_name, language, "")
31-
await rover_generateSAM.generateSAM(<IroverInput>{ template }["template"])
31+
await rover_generateSAM.generateSAM({ template }["template"])
3232
}
3333
export async function addComponentCLI() {
3434
const app_name = await util.inputString("app_name", "", false, "App Name")
@@ -39,11 +39,9 @@ export async function addComponentCLI() {
3939
const CompStacks = await rover_helpers.checkNested(file_name)
4040
const nestedComponents: TnestedComponentsObject = <TnestedComponentsObject>{}
4141
const choice = Object.keys(CompStacks["compStacks"])
42-
let choiceLength = 0
4342
let i = 0
4443
do {
4544
const nested = CompStacks["checkNested"]
46-
choiceLength = choice.length
4745
if (nested) {
4846
const chooseStack = await util.inputType(
4947
"Select the module to which you want to add the components ",
@@ -73,7 +71,6 @@ export async function addComponentCLI() {
7371
}
7472
} else {
7573
const choice = cliConfig.customizable.components
76-
choiceLength = 0
7774
const Compnents = <Array<string>>(
7875
await util.multichoice("components", choice, "")
7976
)

0 commit comments

Comments
 (0)