Skip to content

Commit c97dc45

Browse files
authored
chore: remove useless catch clauses (#8)
1 parent 910fb11 commit c97dc45

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

index.js

-4
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ exports.up = async function (opts={}) {
3838
const toRun = opts.single ? [fresh[0]] : fresh;
3939
await driver.loop(client, toRun, 'up');
4040
return toRun.map(x => x.name);
41-
} catch (err) {
42-
throw err;
4341
} finally {
4442
if (client) await driver.end(client);
4543
}
@@ -64,8 +62,6 @@ exports.down = async function (opts={}) {
6462
const toRun = $.pluck(opts.all ? exists : [last], migrations.slice(idx));
6563
await driver.loop(client, toRun, 'down');
6664
return toRun.map(x => x.name);
67-
} catch (err) {
68-
throw err;
6965
} finally {
7066
if (client) await driver.end(client);
7167
}

0 commit comments

Comments
 (0)