Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 5f4bc2e

Browse files
committed
removing unused variable
1 parent 5c7c6d4 commit 5f4bc2e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,13 @@ user.on('change:language', function(md, lang) {
9494
app.serverConfigs = new ServerConfigsCl();
9595
app.serverConfigs.fetch().done(() => {
9696
var oldConfig,
97-
defaultConfig,
98-
defaultConfigFlat;
97+
defaultConfig;
9998

10099
if (!app.serverConfigs.getActive()) {
101100
defaultConfig = app.serverConfigs.create({
102101
name: polyglot.t('serverConnectModal.defaultServerName'),
103102
default: true
104103
});
105-
defaultConfigFlat = defaultConfig.toJSON();
106104

107105
// migrate any existing connection from the
108106
// old single config set-up (_serverConfig-1)
@@ -135,7 +133,7 @@ app.serverConfigs.fetch().done(() => {
135133
username: oldConfig.username,
136134
password: oldConfig.password
137135
});
138-
136+
139137
localStorage.removeItem('_serverConfig-1');
140138
} else {
141139
app.serverConfigs.setActive(defaultConfig.id);

0 commit comments

Comments
 (0)