From 3a79af75fa4efb66d111440fe904489a304136e1 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 21 Nov 2016 13:01:11 +0100 Subject: [PATCH] Remove extraneous dot --- src/ffmpeg.js | 4 ++-- src/renderer.jsx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ffmpeg.js b/src/ffmpeg.js index f75daccb..ac924d35 100644 --- a/src/ffmpeg.js +++ b/src/ffmpeg.js @@ -37,9 +37,9 @@ function getFfmpegPath() { function cut(filePath, format, cutFrom, cutTo) { return bluebird.try(() => { - const ext = path.extname(filePath) || format; + const ext = path.extname(filePath) || `.${format}`; const outFileAppend = `${util.formatDuration(cutFrom)}-${util.formatDuration(cutTo)}`; - const outFile = `${filePath}-${outFileAppend}.${ext}`; + const outFile = `${filePath}-${outFileAppend}${ext}`; console.log('Cutting from', cutFrom, 'to', cutTo); diff --git a/src/renderer.jsx b/src/renderer.jsx index f8b31022..ace5d6fb 100644 --- a/src/renderer.jsx +++ b/src/renderer.jsx @@ -1,4 +1,3 @@ -const bluebird = require('bluebird'); const electron = require('electron'); // eslint-disable-line const $ = require('jquery'); const keyboardJs = require('keyboardjs');