run prettier

This commit is contained in:
Patrik Oldsberg
2020-09-05 16:07:04 +02:00
parent 7a7396be55
commit b045b166b6
42 changed files with 150 additions and 139 deletions
+6 -2
View File
@@ -42,7 +42,9 @@ export class TechDocsStorageApi implements TechDocsStorage {
async getEntityDocs(entityId: ParsedEntityId, path: string) {
const { kind, namespace, name } = entityId;
const url = `${this.apiOrigin}/${kind}/${namespace ? namespace : 'default'}/${name}/${path}`;
const url = `${this.apiOrigin}/${kind}/${
namespace ? namespace : 'default'
}/${name}/${path}`;
const request = await fetch(
`${url.endsWith('/') ? url : `${url}/`}index.html`,
@@ -64,7 +66,9 @@ export class TechDocsStorageApi implements TechDocsStorage {
return new URL(
oldBaseUrl,
`${this.apiOrigin}/${kind}/${namespace ? namespace : 'default'}/${name}/${path}`,
`${this.apiOrigin}/${kind}/${
namespace ? namespace : 'default'
}/${name}/${path}`,
).toString();
}
}