mirror of
https://github.com/aykhans/slash-e.git
synced 2025-09-05 08:53:33 +00:00
chore: fix golangci error
This commit is contained in:
@@ -132,13 +132,10 @@ func (s *Store) DeleteWorkspaceUser(ctx context.Context, delete *api.WorkspaceUs
|
||||
return err
|
||||
}
|
||||
|
||||
if err := tx.Commit(); err != nil {
|
||||
err = tx.Commit()
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func upsertWorkspaceUser(ctx context.Context, tx *sql.Tx, upsert *api.WorkspaceUserUpsert) (*workspaceUserRaw, error) {
|
||||
set := []string{"workspace_id", "user_id", "role"}
|
||||
args := []interface{}{upsert.WorkspaceID, upsert.UserID, upsert.Role}
|
||||
|
Reference in New Issue
Block a user