Skip to content

Commit d1fddb1

Browse files
committed
lint
1 parent 6bf3f6f commit d1fddb1

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { isfsConfig } from "../utils/FileProviderUtil";
2424
const authRequestMap = new Map<string, Promise<any>>();
2525

2626
/** Map of `username@host:port/pathPrefix` to cookies */
27-
const cookiesMap = new Map<string,string[]>();
27+
const cookiesMap = new Map<string, string[]>();
2828

2929
interface ConnectionSettings {
3030
serverName: string;

src/utils/classDefinition.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,14 @@ export class ClassDefinition {
8888
WHERE Name %inlist (SELECT $LISTFROMSTRING(Super, ',') FROM %Dictionary.CompiledClass WHERE Name = ?)`;
8989
return api
9090
.actionQuery(sql, [this._className])
91-
.then(
92-
(data) =>
93-
data.result.content
94-
.reduce(
95-
(list: string[], el: { PrimarySuper: string }) =>
96-
list.concat(el.PrimarySuper.split("~").filter((item) => item.length)),
97-
[]
98-
)
99-
.filter((name: string) => name !== this._className)
91+
.then((data) =>
92+
data.result.content
93+
.reduce(
94+
(list: string[], el: { PrimarySuper: string }) =>
95+
list.concat(el.PrimarySuper.split("~").filter((item) => item.length)),
96+
[]
97+
)
98+
.filter((name: string) => name !== this._className)
10099
)
101100
.then((data) => data);
102101
}

0 commit comments

Comments
 (0)