Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis committed Feb 2, 2024
1 parent 24e30cc commit fc0f590
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ export default class Application extends JSONAPIAdapter {

if (typeof revId !== 'undefined') {
let encodedRevId = encodeURIComponent(revId);
url = `json-docs/${projectName}/${version}/${pluralize(modelNameToUse)}/${encodedRevId}`;
url = `json-docs/${projectName}/${version}/${pluralize(
modelNameToUse
)}/${encodedRevId}`;
} else {
throw new Error('Documentation item not found');
}
} else if (modelName === 'missing') {
let version = this.projectService.version;
let revId = this.metaStore.getRevId(projectName, version, modelName, id);
url = `json-docs/${projectName}/${version}/${pluralize(modelName)}/${revId}`;
url = `json-docs/${projectName}/${version}/${pluralize(
modelName
)}/${revId}`;
} else if (modelName === 'project') {
this.currentProject = id;
url = `rev-index/${id}`;
Expand Down

0 comments on commit fc0f590

Please sign in to comment.