提交 a40b6c15 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

lint

上级 2a71d33e
......@@ -67,7 +67,7 @@ test('Config puppetInstance', t => {
test('Config docker mode', t => {
t.true('isDocker' in Config, 'should identify docker env by `isDocker`')
if ('C9_PORT' in process.env) {
t.is(Config.isDocker, false, 'should not in docker mode in Cloud9 IDE')
} else if (require('is-ci')) {
......@@ -75,5 +75,5 @@ test('Config docker mode', t => {
} else {
// a custom running envioronment, maybe docker, maybe not
}
})
\ No newline at end of file
})
......@@ -109,7 +109,7 @@ function isWechatyDocker() {
if (c9 > 7 && process.env['C9_PORT']) {
return false
}
const cgroup = '/proc/1/cgroup'
try { fs.statSync(cgroup).isFile() }
catch (e) { return false }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册