Skip to content

Commit

Permalink
remove axios dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Nov 14, 2024
1 parent b1bf7ee commit 797e05f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app-gocardless/app-gocardless.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { isAxiosError } from 'axios';
import express from 'express';
import path from 'path';
import { inspect } from 'util';
Expand Down Expand Up @@ -237,7 +236,7 @@ app.post(
error_code: 'NORDIGEN_ERROR',
});
break;
case isAxiosError(error):
case error.isAxiosError:
console.log(
'Something went wrong',
inspect(error.response?.data || error, { depth: null }),
Expand Down

0 comments on commit 797e05f

Please sign in to comment.