[#1569] cli: Remove unnecessary variable after refactoring
All checks were successful
DCO action / DCO (pull_request) Successful in 3m26s
Vulncheck / Vulncheck (pull_request) Successful in 3m43s
Tests and linters / Run gofumpt (pull_request) Successful in 5m6s
Tests and linters / Staticcheck (pull_request) Successful in 5m45s
Tests and linters / Lint (pull_request) Successful in 6m40s
Build / Build Components (pull_request) Successful in 8m35s
Pre-commit hooks / Pre-commit (pull_request) Successful in 9m13s
Tests and linters / Tests (pull_request) Successful in 10m19s
Tests and linters / Tests with -race (pull_request) Successful in 10m44s
Tests and linters / gopls check (pull_request) Successful in 10m52s
Tests and linters / Run gofumpt (push) Successful in 3m52s
Tests and linters / Staticcheck (push) Successful in 4m3s
Tests and linters / Lint (push) Successful in 5m41s
Vulncheck / Vulncheck (push) Successful in 8m33s
Pre-commit hooks / Pre-commit (push) Successful in 9m29s
Build / Build Components (push) Successful in 9m58s
Tests and linters / Tests (push) Successful in 9m58s
Tests and linters / Tests with -race (push) Successful in 10m20s
Tests and linters / gopls check (push) Successful in 10m56s
All checks were successful
DCO action / DCO (pull_request) Successful in 3m26s
Vulncheck / Vulncheck (pull_request) Successful in 3m43s
Tests and linters / Run gofumpt (pull_request) Successful in 5m6s
Tests and linters / Staticcheck (pull_request) Successful in 5m45s
Tests and linters / Lint (pull_request) Successful in 6m40s
Build / Build Components (pull_request) Successful in 8m35s
Pre-commit hooks / Pre-commit (pull_request) Successful in 9m13s
Tests and linters / Tests (pull_request) Successful in 10m19s
Tests and linters / Tests with -race (pull_request) Successful in 10m44s
Tests and linters / gopls check (pull_request) Successful in 10m52s
Tests and linters / Run gofumpt (push) Successful in 3m52s
Tests and linters / Staticcheck (push) Successful in 4m3s
Tests and linters / Lint (push) Successful in 5m41s
Vulncheck / Vulncheck (push) Successful in 8m33s
Pre-commit hooks / Pre-commit (push) Successful in 9m29s
Build / Build Components (push) Successful in 9m58s
Tests and linters / Tests (push) Successful in 9m58s
Tests and linters / Tests with -race (push) Successful in 10m20s
Tests and linters / gopls check (push) Successful in 10m56s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
bed49e6ace
commit
e44b84c18c
1 changed files with 1 additions and 3 deletions
|
@ -67,8 +67,6 @@ func getObjectHash(cmd *cobra.Command, _ []string) {
|
||||||
pk := key.GetOrGenerate(cmd)
|
pk := key.GetOrGenerate(cmd)
|
||||||
cli := internalclient.GetSDKClientByFlag(cmd, pk, commonflags.RPC)
|
cli := internalclient.GetSDKClientByFlag(cmd, pk, commonflags.RPC)
|
||||||
|
|
||||||
tz := typ == hashTz
|
|
||||||
|
|
||||||
var hashPrm internalclient.HashPayloadRangesPrm
|
var hashPrm internalclient.HashPayloadRangesPrm
|
||||||
hashPrm.SetClient(cli)
|
hashPrm.SetClient(cli)
|
||||||
Prepare(cmd, &hashPrm)
|
Prepare(cmd, &hashPrm)
|
||||||
|
@ -77,7 +75,7 @@ func getObjectHash(cmd *cobra.Command, _ []string) {
|
||||||
hashPrm.SetSalt(salt)
|
hashPrm.SetSalt(salt)
|
||||||
hashPrm.SetRanges(ranges)
|
hashPrm.SetRanges(ranges)
|
||||||
|
|
||||||
if tz {
|
if typ == hashTz {
|
||||||
hashPrm.TZ()
|
hashPrm.TZ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue