Skip to content

Commit

Permalink
Merge pull request #146 from efx/no-var
Browse files Browse the repository at this point in the history
remove var usage, destructure properties
  • Loading branch information
MelSumner authored Jun 12, 2019
2 parents 5eb7775 + a9bd983 commit 04f1e5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addon/services/page-title-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default Service.extend({
return;
}

var previous = this.tokens.slice(-1)[0];
let previous = this.tokens.slice(-1)[0];
if (previous) {
token.previous = previous;
previous.next = token;
Expand All @@ -106,8 +106,7 @@ export default Service.extend({

remove(id) {
let token = this.tokens.findBy('id', id);
var next = token.next;
var previous = token.previous;
let {next, previous} = token;
if (next) {
next.previous = previous;
}
Expand Down

0 comments on commit 04f1e5a

Please sign in to comment.