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

View File

@@ -18,7 +18,7 @@ func aptlyRepoList(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag {
return aptlyRepoListJson(cmd, args)
return aptlyRepoListJSON(cmd, args)
}
return aptlyRepoListTxt(cmd, args)
@@ -71,7 +71,7 @@ func aptlyRepoListTxt(cmd *commander.Command, args []string) error {
return err
}
func aptlyRepoListJson(cmd *commander.Command, args []string) error {
func aptlyRepoListJSON(cmd *commander.Command, args []string) error {
var err error
repos := make([]*deb.LocalRepo, context.NewCollectionFactory().LocalRepoCollection().Len())