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)
|
builderSocket?.emitDatasourceUpdate(ctx, datasource)
|
||||||
return table
|
return table
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
throw err
|
|
||||||
if (err instanceof Error) {
|
if (err instanceof Error) {
|
||||||
ctx.throw(400, err.message)
|
ctx.throw(400, err.message)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue