File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -8249,7 +8249,7 @@ func (q *FakeQuerier) InsertWorkspaceBuildParameters(_ context.Context, arg data
8249
8249
return nil
8250
8250
}
8251
8251
8252
- func (q * FakeQuerier ) InsertWorkspaceModule (ctx context.Context , arg database.InsertWorkspaceModuleParams ) (database.WorkspaceModule , error ) {
8252
+ func (q * FakeQuerier ) InsertWorkspaceModule (_ context.Context , arg database.InsertWorkspaceModuleParams ) (database.WorkspaceModule , error ) {
8253
8253
err := validateDatabaseType (arg )
8254
8254
if err != nil {
8255
8255
return database.WorkspaceModule {}, err
@@ -8258,15 +8258,7 @@ func (q *FakeQuerier) InsertWorkspaceModule(ctx context.Context, arg database.In
8258
8258
q .mutex .Lock ()
8259
8259
defer q .mutex .Unlock ()
8260
8260
8261
- workspaceModule := database.WorkspaceModule {
8262
- ID : arg .ID ,
8263
- JobID : arg .JobID ,
8264
- Transition : arg .Transition ,
8265
- Source : arg .Source ,
8266
- Version : arg .Version ,
8267
- Key : arg .Key ,
8268
- CreatedAt : arg .CreatedAt ,
8269
- }
8261
+ workspaceModule := database .WorkspaceModule (arg )
8270
8262
q .workspaceModules = append (q .workspaceModules , workspaceModule )
8271
8263
return workspaceModule , nil
8272
8264
}
You can’t perform that action at this time.
0 commit comments