aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/videoPreview/FragmentPreview.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-12-24 23:45:16 +0900
committerPitu <[email protected]>2020-12-24 23:45:16 +0900
commitfb2c27086f570fec60f4d52dcc9ca80e53186293 (patch)
tree4c4fd056c293b8e0de632023ef19fdea95c009fa /src/api/utils/videoPreview/FragmentPreview.js
parentMerge pull request #228 from Zephyrrus/begone_trailing_commas (diff)
downloadhost.fuwn.me-fb2c27086f570fec60f4d52dcc9ca80e53186293.tar.xz
host.fuwn.me-fb2c27086f570fec60f4d52dcc9ca80e53186293.zip
Fix ESLint rules once and for all
Diffstat (limited to 'src/api/utils/videoPreview/FragmentPreview.js')
-rw-r--r--src/api/utils/videoPreview/FragmentPreview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/utils/videoPreview/FragmentPreview.js b/src/api/utils/videoPreview/FragmentPreview.js
index 4f681fa..1d1ee02 100644
--- a/src/api/utils/videoPreview/FragmentPreview.js
+++ b/src/api/utils/videoPreview/FragmentPreview.js
@@ -25,7 +25,7 @@ const getStartTime = (vDuration, fDuration, ignoreBeforePercent, ignoreAfterPerc
return getRandomInt(ignoreBeforePercent * safeVDuration, ignoreAfterPercent * safeVDuration);
};
-module.exports = async (opts) => {
+module.exports = async opts => {
const {
log = noop,
@@ -78,7 +78,7 @@ module.exports = async (opts) => {
.outputOptions([`-t ${fragmentDurationSecond}`])
.noAudio()
.output(output)
- .on('start', (cmd) => log && log({ cmd }))
+ .on('start', cmd => log && log({ cmd }))
.on('end', resolve)
.on('error', reject)
.run();