Skip to content

Commit

Permalink
Merge pull request #25 from nathan-fiscaletti/dev
Browse files Browse the repository at this point in the history
Removed unused code
  • Loading branch information
nathan-fiscaletti authored Aug 3, 2024
2 parents d4a5db3 + de3a256 commit 2c65bcb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/application/commands/general/cmd.version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"os"
"runtime"
"strings"

"github.com/nathan-fiscaletti/letstry/internal/application/commands"
"github.com/nathan-fiscaletti/letstry/internal/cli"
Expand Down Expand Up @@ -35,12 +34,3 @@ func VersionCommand() cli.Command {
},
}
}

// getRootModulePath returns the root module path by removing the subdirectory.
func getRootModulePath(modulePath string) string {
parts := strings.Split(modulePath, "/")
if len(parts) > 3 {
return strings.Join(parts[:3], "/")
}
return modulePath
}

0 comments on commit 2c65bcb

Please sign in to comment.