diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-05 15:36:23 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-07-05 21:27:38 +0200 |
| commit | 0e52785dfc5e99f48718530976083cfbd1507651 (patch) | |
| tree | 4f2760b3c2660051ce658c496852ca3e71955a71 /opendc-web/opendc-web-ui/src/util/timeline.js | |
| parent | f5e6ad3c77c09de246b6b85309fb4d8eb4d36023 (diff) | |
ui: Fix linting errors
Diffstat (limited to 'opendc-web/opendc-web-ui/src/util/timeline.js')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/util/timeline.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/opendc-web/opendc-web-ui/src/util/timeline.js b/opendc-web/opendc-web-ui/src/util/timeline.js deleted file mode 100644 index 7c8a3ef0..00000000 --- a/opendc-web/opendc-web-ui/src/util/timeline.js +++ /dev/null @@ -1,9 +0,0 @@ -export function convertTickToPercentage(tick, maxTick) { - if (maxTick === 0) { - return '0%' - } else if (tick > maxTick) { - return (maxTick / (maxTick + 1)) * 100 + '%' - } - - return (tick / (maxTick + 1)) * 100 + '%' -} |
