Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit 9052911

Browse files
timonbackstavshamir
authored andcommitted
fix after rebase
1 parent 7a46ea9 commit 9052911

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/app/shared/asyncapi-mapper.service.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,7 @@ export class AsyncApiMapperService {
6767
constructor() {
6868
}
6969

70-
public toAsyncApiMap(serverAsyncApi: Map<string, ServerAsyncApi>): Map<string, AsyncApi> {
71-
const docs = new Map<string, AsyncApi>();
72-
Object.entries(serverAsyncApi).forEach(([docName, doc]) => docs.set(docName, this.toAsyncApi(doc)));
73-
return docs;
74-
}
75-
76-
toAsyncApi(item: ServerAsyncApi): AsyncApi {
70+
public toAsyncApi(item: ServerAsyncApi): AsyncApi {
7771
return {
7872
info: item.info,
7973
servers: this.mapServers(item.servers),

0 commit comments

Comments
 (0)