Skip to content

Fix linting error (#775) #776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable ember/classic-decorator-hooks, ember/classic-decorator-no-classic-methods */
import { inject as service } from '@ember/service';
import JSONAPIAdapter from '@ember-data/adapter/json-api';
import fetch from 'fetch';
Expand Down Expand Up @@ -41,8 +40,8 @@ export default class Application extends JSONAPIAdapter {
return !hasId;
}

init() {
super.init(...arguments);
constructor() {
super(...arguments);
this.ids = {};
}

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