mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-118 - removed the duplicate code block
This commit is contained in:
committed by
Kiran Niranjan
parent
59666767d2
commit
b3300bb9e3
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user