fix: minor warnings
@@ -20,7 +20,7 @@ var (
// parsed config
conf config.Config
- // require cache
+ // RequireCache in this instance
RequireCache bool
)
@@ -81,7 +81,7 @@ 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 {
