Skip to content

Commit d919643

Browse files
committed
Fix linting error (#775)
1 parent 4006bdd commit d919643

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/adapters/application.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable ember/classic-decorator-hooks, ember/classic-decorator-no-classic-methods */
21
import { inject as service } from '@ember/service';
32
import JSONAPIAdapter from '@ember-data/adapter/json-api';
43
import fetch from 'fetch';
@@ -41,8 +40,8 @@ export default class Application extends JSONAPIAdapter {
4140
return !hasId;
4241
}
4342

44-
init() {
45-
super.init(...arguments);
43+
constructor(ids, args) {
44+
super(ids, args);
4645
this.ids = {};
4746
}
4847

@@ -71,7 +70,7 @@ export default class Application extends JSONAPIAdapter {
7170
throw new Error('Documentation item not found');
7271
}
7372
} else if (modelName === 'missing') {
74-
let version = this.get('projectService.version');
73+
let version = this.projectService.version;
7574
let revId = this.metaStore.getRevId(projectName, version, modelName, id);
7675
url = `json-docs/${projectName}/${version}/${pluralize(
7776
modelName

0 commit comments

Comments
 (0)