fixed a few minor issues
このコミットが含まれているのは:
コミット
e52ae83aa4
@ -59,14 +59,14 @@ module.exports.create = function () {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve();
|
||||
resolve(curState());
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
isRunning: curState
|
||||
curState: curState
|
||||
, start: start
|
||||
, stop: stop
|
||||
};
|
||||
|
@ -11,7 +11,7 @@ module.exports.create = function (deps, conf) {
|
||||
function read(fileName) {
|
||||
return fs.readFileAsync(path.join(storageDir, fileName))
|
||||
.then(JSON.parse, function (err) {
|
||||
if (err.code === 'ENOEXIST') {
|
||||
if (err.code === 'ENOENT') {
|
||||
return {};
|
||||
}
|
||||
throw err;
|
||||
|
読み込み中…
x
新しいイシューから参照
ユーザーをブロックする