From c9ff3ab3b84f63f582c5213b4af638e77115b41a Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 4 Mar 2016 05:44:33 -0800 Subject: [PATCH] login: fix usage of `Object.assign` --- lib/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/login.js b/lib/login.js index 9ddd9a0..6489408 100644 --- a/lib/login.js +++ b/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)); }