Skip to content

Commit 1f9f897

Browse files
authored
Merge pull request #20 from daimor/issue19
fixed error with call error api
2 parents c758cb1 + 62bbc98 commit 1f9f897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

is-api-error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = ({ name, action, log }) => ({ err, data }) => {
1+
module.exports = ( name, action, log ) => ({ err, data }) => {
22

33
const { result, status, console } = data
44

@@ -21,7 +21,7 @@ module.exports = ({ name, action, log }) => ({ err, data }) => {
2121
if ( status.errors.length !== 0 ){
2222
log( `${ name } ${ action }:` )
2323
console.forEach( line => log( line ) )
24-
return true
24+
return true
2525
}
2626

2727
return false

0 commit comments

Comments
 (0)