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) jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag { if jsonFlag {
return aptlyMirrorListJson(cmd, args) return aptlyMirrorListJSON(cmd, args)
} }
return aptlyMirrorListTxt(cmd, args) return aptlyMirrorListTxt(cmd, args)
@@ -65,7 +65,7 @@ func aptlyMirrorListTxt(cmd *commander.Command, args []string) error {
return err return err
} }
func aptlyMirrorListJson(cmd *commander.Command, args []string) error { func aptlyMirrorListJSON(cmd *commander.Command, args []string) error {
var err error var err error
repos := make([]*deb.RemoteRepo, context.NewCollectionFactory().RemoteRepoCollection().Len()) repos := make([]*deb.RemoteRepo, context.NewCollectionFactory().RemoteRepoCollection().Len())
+2 -2
View File
@@ -18,7 +18,7 @@ func aptlyPublishList(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag { if jsonFlag {
return aptlyPublishListJson(cmd, args) return aptlyPublishListJSON(cmd, args)
} }
return aptlyPublishListTxt(cmd, args) return aptlyPublishListTxt(cmd, args)
@@ -74,7 +74,7 @@ func aptlyPublishListTxt(cmd *commander.Command, args []string) error {
return err return err
} }
func aptlyPublishListJson(cmd *commander.Command, args []string) error { func aptlyPublishListJSON(cmd *commander.Command, args []string) error {
var err error var err error
repos := make([]*deb.PublishedRepo, 0, context.NewCollectionFactory().PublishedRepoCollection().Len()) repos := make([]*deb.PublishedRepo, 0, context.NewCollectionFactory().PublishedRepoCollection().Len())
+2 -2
View File
@@ -18,7 +18,7 @@ func aptlyRepoList(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag { if jsonFlag {
return aptlyRepoListJson(cmd, args) return aptlyRepoListJSON(cmd, args)
} }
return aptlyRepoListTxt(cmd, args) return aptlyRepoListTxt(cmd, args)
@@ -71,7 +71,7 @@ func aptlyRepoListTxt(cmd *commander.Command, args []string) error {
return err return err
} }
func aptlyRepoListJson(cmd *commander.Command, args []string) error { func aptlyRepoListJSON(cmd *commander.Command, args []string) error {
var err error var err error
repos := make([]*deb.LocalRepo, context.NewCollectionFactory().LocalRepoCollection().Len()) repos := make([]*deb.LocalRepo, context.NewCollectionFactory().LocalRepoCollection().Len())
+2 -2
View File
@@ -17,7 +17,7 @@ func aptlySnapshotList(cmd *commander.Command, args []string) error {
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool) jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
if jsonFlag { if jsonFlag {
return aptlySnapshotListJson(cmd, args) return aptlySnapshotListJSON(cmd, args)
} }
return aptlySnapshotListTxt(cmd, args) return aptlySnapshotListTxt(cmd, args)
@@ -59,7 +59,7 @@ func aptlySnapshotListTxt(cmd *commander.Command, args []string) error {
return err return err
} }
func aptlySnapshotListJson(cmd *commander.Command, args []string) error { func aptlySnapshotListJSON(cmd *commander.Command, args []string) error {
var err error var err error
sortMethodString := cmd.Flag.Lookup("sort").Value.Get().(string) sortMethodString := cmd.Flag.Lookup("sort").Value.Get().(string)