Skip to content

joyent/node-triton#89 -o field,field,...` should be strict about allo…#4

Open
YangYong3 wants to merge 2 commits intotrentm:masterfrom
YangYong3:master
Open

joyent/node-triton#89 -o field,field,...` should be strict about allo…#4
YangYong3 wants to merge 2 commits intotrentm:masterfrom
YangYong3:master

Conversation

@YangYong3
Copy link

lib/tabula.js Outdated
} catch (e) {}
} catch (e) {
if (options.caseInsensitiveLookup)
throw new Error(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since e is already an error, you shouldn't need the new Error constructor, ie.

if (options.caseInsensitiveLookup)
  throw e;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants