Get rid of dynamic errors

This commit is contained in:
Kristoffer Dalby committed 2021-11-15 19:18:14 +00:00
1 parent 25b790d025
commit d6739386a0
10 files changed
+53 -22

No files matched your search

+1 -1
View File
@@ -178,7 +178,7 @@ var expirePreAuthKeyCmd = &cobra.Command{
Short: "Expire a preauthkey",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return fmt.Errorf("missing parameters")
return errMissingParameter
}
return nil