Remove unused variables
This commit is contained in:
parent
6a60938b09
commit
f60b7686d0
110 changed files with 242 additions and 277 deletions
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue