removed check on undefined configState.filename - should not happen, and is covered by the statSync anyway
This commit is contained in:
parent
4dd5989d27
commit
c5fd75dac3
@ -224,10 +224,6 @@ function configureOnceOff(config, options) {
|
|||||||
function reloadConfiguration() {
|
function reloadConfiguration() {
|
||||||
var filename = configState.filename,
|
var filename = configState.filename,
|
||||||
mtime;
|
mtime;
|
||||||
if (!filename) {
|
|
||||||
// can't find anything to reload
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
mtime = fs.statSync(filename).mtime;
|
mtime = fs.statSync(filename).mtime;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user