mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-05 05:20:34 +00:00
golint: "Json" in func name should be "JSON".
This commit is contained in:
committed by
Lorenzo Bolla
parent
5b8c909ac3
commit
c1cdb69f56
+2
-2
@@ -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]
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ func aptlyPublishShow(cmd *commander.Command, args []string) error {
|
||||
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
|
||||
|
||||
if jsonFlag {
|
||||
return aptlyPublishShowJson(cmd, args)
|
||||
return aptlyPublishShowJSON(cmd, args)
|
||||
}
|
||||
|
||||
return aptlyPublishShowTxt(cmd, args)
|
||||
@@ -76,7 +76,7 @@ func aptlyPublishShowTxt(cmd *commander.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func aptlyPublishShowJson(cmd *commander.Command, args []string) error {
|
||||
func aptlyPublishShowJSON(cmd *commander.Command, args []string) error {
|
||||
var err error
|
||||
|
||||
distribution := args[0]
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ func aptlyRepoShow(cmd *commander.Command, args []string) error {
|
||||
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
|
||||
|
||||
if jsonFlag {
|
||||
return aptlyRepoShowJson(cmd, args)
|
||||
return aptlyRepoShowJSON(cmd, args)
|
||||
}
|
||||
|
||||
return aptlyRepoShowTxt(cmd, args)
|
||||
@@ -58,7 +58,7 @@ func aptlyRepoShowTxt(cmd *commander.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func aptlyRepoShowJson(cmd *commander.Command, args []string) error {
|
||||
func aptlyRepoShowJSON(cmd *commander.Command, args []string) error {
|
||||
var err error
|
||||
|
||||
name := args[0]
|
||||
|
||||
@@ -19,7 +19,7 @@ func aptlySnapshotShow(cmd *commander.Command, args []string) error {
|
||||
jsonFlag := cmd.Flag.Lookup("json").Value.Get().(bool)
|
||||
|
||||
if jsonFlag {
|
||||
return aptlySnapshotShowJson(cmd, args)
|
||||
return aptlySnapshotShowJSON(cmd, args)
|
||||
}
|
||||
|
||||
return aptlySnapshotShowTxt(cmd, args)
|
||||
@@ -85,7 +85,7 @@ func aptlySnapshotShowTxt(cmd *commander.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func aptlySnapshotShowJson(cmd *commander.Command, args []string) error {
|
||||
func aptlySnapshotShowJSON(cmd *commander.Command, args []string) error {
|
||||
var err error
|
||||
|
||||
name := args[0]
|
||||
|
||||
Reference in New Issue
Block a user