aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/main.go
diff options
context:
space:
mode:
authorMatthew Halpern <matthalp@google.com>2019-02-24 19:39:23 +0800
committerViktor TrĂ³n <viktor.tron@gmail.com>2019-02-24 19:39:23 +0800
commit90b6cdaadfb25c2ca117a55d5295a311d6d72447 (patch)
tree39cc1831eab2f5a59fee573a5ae8762fe7fc7755 /cmd/swarm/main.go
parent64d10c08726af33048e8eeb8df257628a3944870 (diff)
downloadgo-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.gz
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.bz2
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.lz
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.xz
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.tar.zst
go-tangerine-90b6cdaadfb25c2ca117a55d5295a311d6d72447.zip
cmd,swarm: enforce camel case variable names (#19060)
Diffstat (limited to 'cmd/swarm/main.go')
-rw-r--r--cmd/swarm/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index af00503ea..4d63255d7 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -76,8 +76,8 @@ var gitCommit string
//declare a few constant error messages, useful for later error check comparisons in test
var (
- SWARM_ERR_NO_BZZACCOUNT = "bzzaccount option is required but not set; check your config file, command line or environment variables"
- SWARM_ERR_SWAP_SET_NO_API = "SWAP is enabled but --swap-api is not set"
+ SwarmErrNoBZZAccount = "bzzaccount option is required but not set; check your config file, command line or environment variables"
+ SwarmErrSwapSetNoAPI = "SWAP is enabled but --swap-api is not set"
)
// this help command gets added to any subcommand that does not define it explicitly
@@ -351,7 +351,7 @@ func registerBzzService(bzzconfig *bzzapi.Config, stack *node.Node) {
func getAccount(bzzaccount string, ctx *cli.Context, stack *node.Node) *ecdsa.PrivateKey {
//an account is mandatory
if bzzaccount == "" {
- utils.Fatalf(SWARM_ERR_NO_BZZACCOUNT)
+ utils.Fatalf(SwarmErrNoBZZAccount)
}
// Try to load the arg as a hex key file.
if key, err := crypto.LoadECDSA(bzzaccount); err == nil {