golint: "Json" in func name should be "JSON".

This commit is contained in:
Ximon Eighteen
2022-01-25 12:47:09 +01:00
committed by Lorenzo Bolla
parent 5b8c909ac3
commit c1cdb69f56
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ func aptlyMirrorShow(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag {
return aptlyMirrorShowJson(cmd, args)
return aptlyMirrorShowJSON(cmd, args)
}
return aptlyMirrorShowTxt(cmd, args)
@@ -93,7 +93,7 @@ func aptlyMirrorShowTxt(cmd *commander.Command, args []string) error {
return err
}
func aptlyMirrorShowJson(cmd *commander.Command, args []string) error {
func aptlyMirrorShowJSON(cmd *commander.Command, args []string) error {
var err error
name := args[0]