fix broken vet, format some stuff

This commit is contained in:
Zach committed 2023-06-13 16:05:04 -05:00
1 parent fab4f4e97d
commit b1d59bf890
6 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ import (
func init() {
protectCmd.Flags().Bool("staged", false, "detect secrets in a --staged state")
protectCmd.Flags().String("log-opts", "", "git log options")
protectCmd.Flags().StringP("gitleaks-ignore-path","i",".","path to .gitleaksignore file or folder containing one")
protectCmd.Flags().StringP("gitleaks-ignore-path", "i", ".", "path to .gitleaksignore file or folder containing one")
rootCmd.AddCommand(protectCmd)
}
@@ -75,7 +75,7 @@ func runProtect(cmd *cobra.Command, args []string) {
log.Fatal().Err(err).Msg("")
}
gitleaksIgnorePath, err:= cmd.Flags().GetString("gitleaks-ignore-path")
gitleaksIgnorePath, err := cmd.Flags().GetString("gitleaks-ignore-path")
if err != nil {
log.Fatal().Err(err).Msg("could not get .gitleaksignore path")
}