updated format and lint scripts and applied them
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// make sure basePath doesn't end with /
|
||||
let { basePath } = require('../config/host.json');
|
||||
const urlChars = basePath.split('');
|
||||
let { basePath } = require('../config/host.json')
|
||||
const urlChars = basePath.split('')
|
||||
|
||||
if(basePath.length > 1 && urlChars.pop() === '/') {
|
||||
basePath = urlChars.join('');
|
||||
if (basePath.length > 1 && urlChars.pop() === '/') {
|
||||
basePath = urlChars.join('')
|
||||
}
|
||||
module.exports = basePath;
|
||||
module.exports = basePath
|
||||
|
||||
Reference in New Issue
Block a user