diff options
author | Matthew Halpern <matthalp@google.com> | 2019-02-24 19:39:23 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2019-02-24 19:39:23 +0800 |
commit | 90b6cdaadfb25c2ca117a55d5295a311d6d72447 (patch) | |
tree | 39cc1831eab2f5a59fee573a5ae8762fe7fc7755 /swarm/api | |
parent | 64d10c08726af33048e8eeb8df257628a3944870 (diff) | |
download | go-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 'swarm/api')
-rw-r--r-- | swarm/api/act.go | 2 | ||||
-rw-r--r-- | swarm/api/api.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/swarm/api/act.go b/swarm/api/act.go index 9566720b0..a79f1944b 100644 --- a/swarm/api/act.go +++ b/swarm/api/act.go @@ -33,7 +33,7 @@ var ( } ) -const EMPTY_CREDENTIALS = "" +const EmptyCredentials = "" type AccessEntry struct { Type AccessType diff --git a/swarm/api/api.go b/swarm/api/api.go index c6ca1b577..86c111923 100644 --- a/swarm/api/api.go +++ b/swarm/api/api.go @@ -431,7 +431,7 @@ func (a *API) Delete(ctx context.Context, addr string, path string) (storage.Add apiDeleteFail.Inc(1) return nil, err } - key, err := a.ResolveURI(ctx, uri, EMPTY_CREDENTIALS) + key, err := a.ResolveURI(ctx, uri, EmptyCredentials) if err != nil { return nil, err @@ -643,7 +643,7 @@ func (a *API) AddFile(ctx context.Context, mhash, path, fname string, content [] apiAddFileFail.Inc(1) return nil, "", err } - mkey, err := a.ResolveURI(ctx, uri, EMPTY_CREDENTIALS) + mkey, err := a.ResolveURI(ctx, uri, EmptyCredentials) if err != nil { apiAddFileFail.Inc(1) return nil, "", err @@ -760,7 +760,7 @@ func (a *API) RemoveFile(ctx context.Context, mhash string, path string, fname s apiRmFileFail.Inc(1) return "", err } - mkey, err := a.ResolveURI(ctx, uri, EMPTY_CREDENTIALS) + mkey, err := a.ResolveURI(ctx, uri, EmptyCredentials) if err != nil { apiRmFileFail.Inc(1) return "", err @@ -827,7 +827,7 @@ func (a *API) AppendFile(ctx context.Context, mhash, path, fname string, existin apiAppendFileFail.Inc(1) return nil, "", err } - mkey, err := a.ResolveURI(ctx, uri, EMPTY_CREDENTIALS) + mkey, err := a.ResolveURI(ctx, uri, EmptyCredentials) if err != nil { apiAppendFileFail.Inc(1) return nil, "", err |