tenseleyflow/shithub / e18aa98

Browse files

actions/secrets: fix store test lint (S41c)

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
e18aa986e97e78ed25ff30ae2058b8c4e6b0b9f7
Parents
59d5619
Tree
7566ed4

1 changed file

StatusFile+-
M internal/actions/secrets/store_test.go 2 3
internal/actions/secrets/store_test.gomodified
@@ -39,7 +39,6 @@ func freshKey(t *testing.T) string {
3939
 type fx struct {
4040
 	deps   secrets.Deps
4141
 	repoID int64
42
-	orgID  int64
4342
 	userID int64
4443
 }
4544
 
@@ -138,8 +137,8 @@ func TestSet_InvalidScopeRejected(t *testing.T) {
138137
 	f := setup(t)
139138
 	ctx := context.Background()
140139
 	for _, sc := range []secrets.Scope{
141
-		{},                                  // both zero
142
-		{RepoID: 1, OrgID: 2},               // both set
140
+		{},                    // both zero
141
+		{RepoID: 1, OrgID: 2}, // both set
143142
 	} {
144143
 		if err := f.deps.Set(ctx, sc, "K", []byte("v"), 0); !errors.Is(err, secrets.ErrInvalidScope) {
145144
 			t.Errorf("Set scope=%+v: expected ErrInvalidScope, got %v", sc, err)