fix: linting

This commit is contained in:
NGPixel 2019-10-11 16:39:23 -04:00
parent 5919d721a7
commit 7a3198c306
2 changed files with 5 additions and 3 deletions

View File

@ -166,7 +166,8 @@ function append3bytes (b1, b2, b3) {
return r return r
} }
function encode6bit(b) { function encode6bit(raw) {
let b = raw
if (b < 10) { if (b < 10) {
return String.fromCharCode(48 + b) return String.fromCharCode(48 + b)
} }

View File

@ -25,12 +25,13 @@ const getContenType = (filePath) => {
} }
const getPagePath = (filePath) => { const getPagePath = (filePath) => {
let fpath = filePath
if (process.platform === 'win32') { if (process.platform === 'win32') {
filePath = filePath.replace(/\\/g, '/') fpath = filePath.replace(/\\/g, '/')
} }
let meta = { let meta = {
locale: 'en', locale: 'en',
path: _.initial(filePath.split('.')).join('') path: _.initial(fpath.split('.')).join('')
} }
const result = localeFolderRegex.exec(meta.path) const result = localeFolderRegex.exec(meta.path)
if (result[1]) { if (result[1]) {