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

This commit is contained in:
Ximon Eighteen
2022-01-25 12:52:25 +01:00
committed by Lorenzo Bolla
parent c1cdb69f56
commit 9aa9917952
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ func aptlySnapshotList(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag {
return aptlySnapshotListJson(cmd, args)
return aptlySnapshotListJSON(cmd, args)
}
return aptlySnapshotListTxt(cmd, args)
@@ -59,7 +59,7 @@ func aptlySnapshotListTxt(cmd *commander.Command, args []string) error {
return err
}
func aptlySnapshotListJson(cmd *commander.Command, args []string) error {
func aptlySnapshotListJSON(cmd *commander.Command, args []string) error {
var err error
sortMethodString := cmd.Flag.Lookup("sort").Value.Get().(string)