Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rtablada committed Dec 30, 2022
1 parent 63bbdbd commit b697434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-deprecated-router-transition-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { action } from '@ember/object';
export default class NewPostController extends Controller {
@action
async save({ title, text }) {
let post = this.store.createRecord('post', { title, text });
const post = this.store.createRecord('post', { title, text });
await post.save();
return this.transitionToRoute('post', post.id);
}
Expand Down Expand Up @@ -75,7 +75,7 @@ export default class NewPostController extends Controller {

@action
async save({ title, text }) {
let post = this.store.createRecord('post', { title, text });
const post = this.store.createRecord('post', { title, text });
await post.save();
return this.router.transitionTo('post', post.id);
}
Expand Down
2 changes: 0 additions & 2 deletions tests/lib/rules/no-deprecated-router-transition-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
const rule = require('../../../lib/rules/no-deprecated-router-transition-methods');
const RuleTester = require('eslint').RuleTester;

const { createErrorMessage } = rule;

//------------------------------------------------------------------------------
// Tests
//------------------------------------------------------------------------------
Expand Down

0 comments on commit b697434

Please sign in to comment.