@@ -87,7 +87,6 @@ func deleteQ[
87
87
Fetch func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
88
88
Delete func (ctx context.Context , arg ArgumentType ) error ,
89
89
](
90
- // Arguments
91
90
logger slog.Logger ,
92
91
authorizer rbac.Authorizer ,
93
92
fetchFunc Fetch ,
@@ -103,7 +102,6 @@ func updateWithReturn[
103
102
Fetch func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
104
103
UpdateQuery func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
105
104
](
106
- // Arguments
107
105
logger slog.Logger ,
108
106
authorizer rbac.Authorizer ,
109
107
fetchFunc Fetch ,
@@ -118,7 +116,6 @@ func update[
118
116
Fetch func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
119
117
Exec func (ctx context.Context , arg ArgumentType ) error ,
120
118
](
121
- // Arguments
122
119
logger slog.Logger ,
123
120
authorizer rbac.Authorizer ,
124
121
fetchFunc Fetch ,
@@ -139,7 +136,6 @@ func fetch[
139
136
ObjectType rbac.Objecter ,
140
137
DatabaseFunc func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
141
138
](
142
- // Arguments
143
139
logger slog.Logger ,
144
140
authorizer rbac.Authorizer ,
145
141
f DatabaseFunc ,
@@ -176,7 +172,6 @@ func fetchAndExec[
176
172
Fetch func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
177
173
Exec func (ctx context.Context , arg ArgumentType ) error ,
178
174
](
179
- // Arguments
180
175
logger slog.Logger ,
181
176
authorizer rbac.Authorizer ,
182
177
action rbac.Action ,
@@ -203,7 +198,6 @@ func fetchAndQuery[
203
198
Fetch func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
204
199
Query func (ctx context.Context , arg ArgumentType ) (ObjectType , error ),
205
200
](
206
- // Arguments
207
201
logger slog.Logger ,
208
202
authorizer rbac.Authorizer ,
209
203
action rbac.Action ,
@@ -240,7 +234,6 @@ func fetchWithPostFilter[
240
234
ObjectType rbac.Objecter ,
241
235
DatabaseFunc func (ctx context.Context , arg ArgumentType ) ([]ObjectType , error ),
242
236
](
243
- // Arguments
244
237
authorizer rbac.Authorizer ,
245
238
f DatabaseFunc ,
246
239
) DatabaseFunc {
0 commit comments