]> git.wincent.com - hextrapolate.git/commitdiff
Silence a couple of lints
authorGreg Hurrell <greg@hurrell.net>
Sun, 2 Aug 2015 05:18:58 +0000 (22:18 -0700)
committerGreg Hurrell <greg@hurrell.net>
Sun, 2 Aug 2015 05:18:58 +0000 (22:18 -0700)
src/Field.react.js

index 31a0c9b77b90e9ba4d5341eba31d71f0dbbdd58d..ea757c52a06eb7a2ec37c9af5c57c845463253a7 100644 (file)
@@ -69,14 +69,14 @@ export default class Field extends React.Component {
     }
   }
 
-  _onCopy = event => {
+  _onCopy = () => {
     const input = React.findDOMNode(this._input);
     input.select();
 
     try {
       // May throw a SecurityError.
       document.execCommand('copy');
-    } catch(error) {
+    } catch(error) { // eslint-disable-line no-empty
       // Swallow.
     }
   }