Electron-118 - removed the duplicate code block

This commit is contained in:
Kiran Niranjan
2017-09-08 12:48:03 +05:30
committed by Kiran Niranjan
parent 59666767d2
commit b3300bb9e3

View File

@@ -85,19 +85,15 @@ class ScreenSnippet {
}
child = childProcess.execFile(captureUtil, captureUtilArgs, (error) => {
// Method to reset always on top feature
if (isAlwaysOnTop) {
eventEmitter.emit('isAlwaysOnTop', true);
}
// will be called when child process exits.
if (error && error.killed) {
// Method to reset always on top feature
if (isAlwaysOnTop) {
eventEmitter.emit('isAlwaysOnTop', true);
}
// processs was killed, just resolve with no data.
resolve();
} else {
// Method to reset always on top feature
if (isAlwaysOnTop) {
eventEmitter.emit('isAlwaysOnTop', true);
}
readResult.call(this, outputFileName, resolve, reject, error);
}
});