Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwain committed Feb 23, 2018
1 parent 8802cc5 commit 2a9648a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/enzyme/src/ReactWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ class ReactWrapper {
* @returns {String}
*/
key() {
return this.single('key', n => n.key === undefined ? null : n.key);
return this.single('key', n => (n.key === undefined ? null : n.key));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/enzyme/src/ShallowWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ class ShallowWrapper {
* @returns {String}
*/
key() {
return this.single('key', n => n.key === undefined ? null : n.key);
return this.single('key', n => (n.key === undefined ? null : n.key));
}

/**
Expand Down

0 comments on commit 2a9648a

Please sign in to comment.