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
@@ -18,7 +18,7 @@ func aptlyMirrorList(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag {
return aptlyMirrorListJson(cmd, args)
return aptlyMirrorListJSON(cmd, args)
}
return aptlyMirrorListTxt(cmd, args)
@@ -65,7 +65,7 @@ func aptlyMirrorListTxt(cmd *commander.Command, args []string) error {
return err
}
func aptlyMirrorListJson(cmd *commander.Command, args []string) error {
func aptlyMirrorListJSON(cmd *commander.Command, args []string) error {
var err error
repos := make([]*deb.RemoteRepo, context.NewCollectionFactory().RemoteRepoCollection().Len())