@@ -61,7 +61,7 @@ func (q *fakeQuerier) GetUserCount(_ context.Context) (int64, error) {
61
61
return int64 (len (q .users )), nil
62
62
}
63
63
64
- func (q * fakeQuerier ) GetOrganizationByName (ctx context.Context , name string ) (database.Organization , error ) {
64
+ func (q * fakeQuerier ) GetOrganizationByName (_ context.Context , name string ) (database.Organization , error ) {
65
65
for _ , organization := range q .organizations {
66
66
if organization .Name == name {
67
67
return organization , nil
@@ -70,7 +70,7 @@ func (q *fakeQuerier) GetOrganizationByName(ctx context.Context, name string) (d
70
70
return database.Organization {}, sql .ErrNoRows
71
71
}
72
72
73
- func (q * fakeQuerier ) GetOrganizationsByUserID (ctx context.Context , userID string ) ([]database.Organization , error ) {
73
+ func (q * fakeQuerier ) GetOrganizationsByUserID (_ context.Context , userID string ) ([]database.Organization , error ) {
74
74
organizations := make ([]database.Organization , 0 )
75
75
for _ , organizationMember := range q .organizationMembers {
76
76
if organizationMember .UserID != userID {
@@ -112,7 +112,7 @@ func (q *fakeQuerier) InsertAPIKey(_ context.Context, arg database.InsertAPIKeyP
112
112
return key , nil
113
113
}
114
114
115
- func (q * fakeQuerier ) InsertOrganization (ctx context.Context , arg database.InsertOrganizationParams ) (database.Organization , error ) {
115
+ func (q * fakeQuerier ) InsertOrganization (_ context.Context , arg database.InsertOrganizationParams ) (database.Organization , error ) {
116
116
organization := database.Organization {
117
117
ID : arg .ID ,
118
118
Name : arg .Name ,
@@ -123,7 +123,8 @@ func (q *fakeQuerier) InsertOrganization(ctx context.Context, arg database.Inser
123
123
return organization , nil
124
124
}
125
125
126
- func (q * fakeQuerier ) InsertOrganizationMember (ctx context.Context , arg database.InsertOrganizationMemberParams ) (database.OrganizationMember , error ) {
126
+ func (q * fakeQuerier ) InsertOrganizationMember (_ context.Context , arg database.InsertOrganizationMemberParams ) (database.OrganizationMember , error ) {
127
+ //nolint:gosimple
127
128
organizationMember := database.OrganizationMember {
128
129
OrganizationID : arg .OrganizationID ,
129
130
UserID : arg .UserID ,
0 commit comments