mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
chore(root) es2015-ify
This commit is contained in:
parent
b72f5d06b6
commit
a4b2e18052
1 changed files with 4 additions and 4 deletions
|
|
@ -1,10 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
var config = require('./config');
|
||||
var mellow = require('mellow');
|
||||
const config = require('./config');
|
||||
const mellow = require('mellow');
|
||||
|
||||
module.exports = function(dir) {
|
||||
var root = config('root') || '/';
|
||||
module.exports = (dir) => {
|
||||
const root = config('root') || '/';
|
||||
|
||||
return mellow.pathToWin(dir, root);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue