Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nsjames committed Aug 15, 2018
1 parent d01f03e commit 4c85a40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dist": "electron-builder",
"devpack": "npm run build && npm run pack",
"release-win": "npm run build && electron-builder --win",
"release-linux": "npm run build && electron-builder --linux",
"release-linux": "electron-builder --linux",
"release-mac": "npm run build && electron-builder --mac"
},
"dependencies": {
Expand Down
10 changes: 0 additions & 10 deletions src/models/Keychain.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,4 @@ export default class Keychain {
this.permissions = this.permissions.filter(x => !x.accounts.some(a => accountsToRemove.includes(a)));
this.accounts = this.accounts.filter(a => a.unique() !== account.unique());
}

updateOrPushAppLink(appLink){
this.linkedApps.find(app => app.id === appLink.id)
? this.linkedApps = this.linkedApps.map(app => app.id === appLink.id ? appLink : app)
: this.linkedApps.unshift(appLink);
}

removeAppLink(appLink){
this.linkedApps = this.linkedApps.filter(a => a.id !== appLink.id);
}
}

0 comments on commit 4c85a40

Please sign in to comment.