cli: Remove unnecessary variable after refactoring
Some checks failed
Vulncheck / Vulncheck (pull_request) Successful in 3m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m37s
Tests and linters / gopls check (pull_request) Successful in 3m59s
Tests and linters / Run gofumpt (pull_request) Successful in 6m11s
DCO action / DCO (pull_request) Failing after 6m40s
Tests and linters / Tests with -race (pull_request) Successful in 6m41s
Build / Build Components (pull_request) Successful in 7m30s
Tests and linters / Tests (pull_request) Successful in 7m44s
Tests and linters / Staticcheck (pull_request) Successful in 7m57s
Tests and linters / Lint (pull_request) Successful in 8m42s

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-12-18 10:07:22 +03:00
parent 1e62256f94
commit 98c789c3ee
Signed by: fyrchik
SSH key fingerprint: SHA256:m/TTwCzjnRkXgnzEx9X92ccxy1CcVeinOgDb3NPWWmg

View file

@ -67,8 +67,6 @@ func getObjectHash(cmd *cobra.Command, _ []string) {
pk := key.GetOrGenerate(cmd)
cli := internalclient.GetSDKClientByFlag(cmd, pk, commonflags.RPC)
tz := typ == hashTz
var hashPrm internalclient.HashPayloadRangesPrm
hashPrm.SetClient(cli)
Prepare(cmd, &hashPrm)
@ -77,7 +75,7 @@ func getObjectHash(cmd *cobra.Command, _ []string) {
hashPrm.SetSalt(salt)
hashPrm.SetRanges(ranges)
if tz {
if typ == hashTz {
hashPrm.TZ()
}