refactor: remove extraneous else

This commit is contained in:
jamesgeorge007
2020-01-18 15:22:59 +05:30
parent 3b96f85c55
commit aa056ff1c1

View File

@@ -38,9 +38,8 @@ const firefoxWithoutProxy = (req, _store) => new Promise((resolve, reject) => {
const firefoxStrategy = (req, store) => { const firefoxStrategy = (req, store) => {
if (store.state.postwoman.settings.PROXY_ENABLED) { if (store.state.postwoman.settings.PROXY_ENABLED) {
return firefoxWithProxy(req, store); return firefoxWithProxy(req, store);
} else {
return firefoxWithoutProxy(req, store);
} }
return firefoxWithoutProxy(req, store);
} }
export default firefoxStrategy; export default firefoxStrategy;