Remove unused variables

This commit is contained in:
Bill Thornton 2021-01-26 22:20:12 -05:00
parent 6a60938b09
commit f60b7686d0
110 changed files with 242 additions and 277 deletions

View file

@ -19,12 +19,6 @@ export async function serverAddress() {
return Promise.resolve(apiClient.serverAddress());
}
const current = await ServerConnections.getAvailableServers().then(servers => {
if (servers.length !== 0) {
return Promise.resolve(servers[0].ManualAddress);
}
});
// TODO this makes things faster but it also blocks the wizard in some scenarios
// if (current) return Promise.resolve(current);
@ -50,7 +44,7 @@ export async function serverAddress() {
url: url,
response: resp
};
}).catch(error => {
}).catch(() => {
return Promise.resolve();
});
});
@ -117,7 +111,7 @@ export function processPluginConfigurationUpdateResult() {
toast(globalize.translate('SettingsSaved'));
}
export function processServerConfigurationUpdateResult(result) {
export function processServerConfigurationUpdateResult() {
loading.hide();
toast(globalize.translate('SettingsSaved'));
}