Browse Source

login: fix usage of `Object.assign`

master
Guillermo Rauch 9 years ago
parent
commit
c9ff3ab3b8
  1. 2
      lib/login.js

2
lib/login.js

@ -84,6 +84,6 @@ export default async function () {
existing = await fs.readFile(file, 'utf8');
existing = JSON.parse(existing);
} catch (err) {}
const config = Object.extend({}, existing, loginData);
const config = Object.assign({}, existing, loginData);
return fs.writeFile(file, JSON.stringify(config));
}

Loading…
Cancel
Save