Skip to content

Commit

Permalink
Satifsy eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Apr 22, 2017
1 parent fcdf4a9 commit ac1fdc3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Expand Up @@ -19,7 +19,9 @@ const timer = (typeof performance !== 'undefined' && performance !== null) && ty
const repeat = (str, times) => (new Array(times + 1)).join(str);
const pad = (num, maxLength) => repeat('0', maxLength - num.toString().length) + num;
const getDuration = (start) => (timer.now() - start) / 1000;
/* eslint-disable max-len */
const formatTime = (time) => `${pad(time.getHours(), 2)}:${pad(time.getMinutes(), 2)}:${pad(time.getSeconds(), 2)}.${pad(time.getMilliseconds(), 3)}`;
/* eslint-enable max-len */


const toTitleStyle = (color) => `color: ${color}; font-weight: bold';`;
Expand Down

0 comments on commit ac1fdc3

Please sign in to comment.