Skip to content

Commit

Permalink
Fix xo
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGriffiths committed Dec 11, 2018
1 parent 5b4f044 commit 3987114
Show file tree
Hide file tree
Showing 8 changed files with 7,739 additions and 8,485 deletions.
6 changes: 3 additions & 3 deletions bin/truwrap
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@ class Image {
if (fs.statSync(file).isFile()) {
return file;
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`);
break;

default:
console.error(err);
console.error(error);
}

return broken;
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ class Image {
if (fs.statSync(file).isFile()) {
return file;
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`);
break;

default:
console.error(err);
console.error(error);
}

return broken;
Expand Down
6 changes: 3 additions & 3 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,14 @@ class Image {
if (statSync(file).isFile()) {
return file;
}
} catch (err) {
switch (err.code) {
} catch (error) {
switch (error.code) {
case 'ENOENT':
console.warn('Warning:', `${file} not found.`);
break;

default:
console.error(err);
console.error(error);
}

return broken;
Expand Down
Loading

0 comments on commit 3987114

Please sign in to comment.