Skip to content

Commit ab716c1

Browse files
jrichter1dgolovin
authored andcommitted
Synchronize xhyve detection code
1 parent 6a7610b commit ab716c1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

browser/services/platform.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,12 @@ class Platform {
145145
return Platform.identify({
146146
darwin: ()=> {
147147
return pify(child_process.exec)('which docker-machine-driver-xhyve').then((stdout) => {
148-
return stdout.trim().length > 0;
149-
}).catch(()=> false);
148+
return Promise.resolve(stdout.trim().length > 0);
149+
}).catch(() => {
150+
return Promise.resolve(false);
151+
});
150152
},
151-
default: ()=> Promise.resolve(false)
153+
default: () => { return Promise.resolve(false); }
152154
});
153155
}
154156

0 commit comments

Comments
 (0)