Remove unused throw.
This commit is contained in:
parent
ddf7041562
commit
ea6e2a472e
|
@ -74,7 +74,6 @@ export async function destroy(ctx: UserCtx) {
|
|||
builderSocket?.emitDatasourceUpdate(ctx, datasource)
|
||||
return table
|
||||
} catch (err: any) {
|
||||
throw err
|
||||
if (err instanceof Error) {
|
||||
ctx.throw(400, err.message)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue