Skip to content

Commit

Permalink
fix: minor warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dechristopher authored and bemyak committed Jun 22, 2022
1 parent ac60a09 commit e8690a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/tegola/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
// parsed config
conf config.Config

// require cache
// RequireCache in this instance
RequireCache bool
)

Expand Down Expand Up @@ -77,11 +77,11 @@ var RootCmd = &cobra.Command{
Use: "tegola",
Short: "tegola is a vector tile server",
Long: fmt.Sprintf(`tegola is a vector tile server
Version: %v`, build.Version),
Version: %v`, build.Version),
PersistentPreRunE: rootCmdValidatePersistent,
}

func rootCmdValidatePersistent(cmd *cobra.Command, args []string) (err error) {
func rootCmdValidatePersistent(cmd *cobra.Command, _ []string) (err error) {
requireCache := RequireCache || cachecmd.RequireCache
cmdName := cmd.CalledAs()
switch cmdName {
Expand Down

0 comments on commit e8690a9

Please sign in to comment.