Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mukezhz committed Jan 7, 2024
1 parent 9762d5d commit 6f78dab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions cmd/new_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ func createModule(_ *cobra.Command, args []string) {
return
}
mainModulePath := filepath.Join(projectPath, "domain", "features", "module.go")
if err != nil {
panic(err)
}
var moduleName string
if len(args) == 1 {
questions := []terminal.ProjectQuestion{
Expand Down Expand Up @@ -75,5 +72,4 @@ func createModule(_ *cobra.Command, args []string) {
utility.WriteContentToPath(mainModulePath, updatedCode)

utility.PrintColorizeModuleDetail(data)

}
2 changes: 1 addition & 1 deletion cmd/run_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var runProjectCmd = &cobra.Command{
Run: runProject,
}

func runProject(cmd *cobra.Command, args []string) {
func runProject(_ *cobra.Command, args []string) {
runGo := "go"
// execute command from golang
err := utility.ExecuteCommand(runGo, args...)
Expand Down

0 comments on commit 6f78dab

Please sign in to comment.