chore(cloudcmd) lint

This commit is contained in:
coderaiser 2019-02-21 17:17:22 +02:00
parent fa6de0ce67
commit 76c7443d07
2 changed files with 10 additions and 2 deletions

View file

@ -66,7 +66,11 @@ let Element;
let Template;
function getHost() {
const {host, origin, protocol} = location;
const {
host,
origin,
protocol,
} = location;
const href = origin || `${protocol}//${host}`;
return href;

View file

@ -20,7 +20,11 @@ const currentConfig = readjson.sync.try(pathConfig);
module.exports = before;
function before(options, fn = options) {
const {config, plugins, modules} = options;
const {
config,
plugins,
modules,
} = options;
const app = express();
const server = http.createServer(app);