[#10582] 👌 Pass prettier

Signed-off-by: LvffY <louberger@hotmail.fr>
(cherry picked from commit 90efbd7f197c999f7a067bb813ff5b0232307b2f)
This commit is contained in:
LvffY
2022-04-08 19:56:23 +02:00
parent 75ab45d8b4
commit 659ef6aaa9
2 changed files with 6 additions and 5 deletions
@@ -333,7 +333,8 @@ describe('TodoReaderService', () => {
metadata: {
...mockEntity.metadata,
annotations: {
['backstage.io/managed-by-location']: 'file:../managed-by-location.yaml',
['backstage.io/managed-by-location']:
'file:../managed-by-location.yaml',
},
},
});
@@ -71,12 +71,12 @@ export class TodoReaderService implements TodoService {
`Entity not found, ${stringifyEntityRef(req.entity)}`,
);
}
const entitySourceLocation = getEntitySourceLocation(entity)
const entitySourceLocation = getEntitySourceLocation(entity);
if (entitySourceLocation.type !== 'url') {
throw new InputError(
`Invalid entity location type for ${stringifyEntityRef(
entity,
)}, got '${entitySourceLocation.type}' for location ${entitySourceLocation.target}`,
`Invalid entity location type for ${stringifyEntityRef(entity)}, got '${
entitySourceLocation.type
}' for location ${entitySourceLocation.target}`,
);
}
const url = entitySourceLocation.target;