From 8018a850cb5e6dbd9a2cf2ae4c291ab7c0d88473 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 11:08:43 +0200 Subject: [PATCH] cli/command/trust/inspect_pretty_test.go:399:24: SA4010: this result of append is never used, except maybe in other appends (staticcheck) Signed-off-by: Silvin Lubecki --- cli/command/trust/inspect_pretty_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cli/command/trust/inspect_pretty_test.go b/cli/command/trust/inspect_pretty_test.go index 13d436d168..d9ed38306a 100644 --- a/cli/command/trust/inspect_pretty_test.go +++ b/cli/command/trust/inspect_pretty_test.go @@ -393,11 +393,6 @@ func TestGetSignerRolesWithKeyIDs(t *testing.T) { "bob": {"key71", "key72"}, } - var roleWithSigs []client.RoleWithSignatures - for _, role := range roles { - roleWithSig := client.RoleWithSignatures{Role: role, Signatures: nil} - roleWithSigs = append(roleWithSigs, roleWithSig) - } signerRoleToKeyIDs := getDelegationRoleToKeyMap(roles) assert.Check(t, is.DeepEqual(expectedSignerRoleToKeyIDs, signerRoleToKeyIDs)) }