Skip to content

Commit babe03f

Browse files
committed
formatting
1 parent b4adb0a commit babe03f

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

skipruntime-ts/examples/skipsocial-client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ await fetchJSON(
9191
);
9292

9393
const friends2 = await fetchJSON(`${url}/friend/${userID1}`, "GET", header);
94-
const areFriends = await fetchJSON(`${url}/friend-index/${userID1}:${userID2}`, "GET", header);
94+
const areFriends = await fetchJSON(
95+
`${url}/friend-index/${userID1}:${userID2}`,
96+
"GET",
97+
header,
98+
);
9599

96100
console.log(friends2);
97101
console.log(areFriends);

skipruntime-ts/examples/skipsocial-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class IndexMapper implements Mapper<TJSON, TJSON, string, boolean> {
3737
}
3838
const fieldValues = [];
3939
for (const fieldName of this.fieldNames) {
40-
if(fieldName === keyName) {
40+
if (fieldName === keyName) {
4141
if (typeof key !== "string") {
4242
throw new Error(
4343
"Object field is not a string " +
@@ -56,7 +56,7 @@ export class IndexMapper implements Mapper<TJSON, TJSON, string, boolean> {
5656
}
5757
fieldValues.push(key);
5858
continue;
59-
}
59+
}
6060
if (!(fieldName in value)) {
6161
throw new Error(
6262
"Object does not define the field " +

skipruntime-ts/examples/skipsocial.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ class Service implements SkipService {
391391
const friendRequests = inputCollections.friendRequests;
392392
const friendRequestsIndex = friendRequests.map(IndexMapper, "from", "to");
393393
const friends = makeRequestCollection(friendRequests).map(FriendMapper);
394-
const friendIndex = friends.map(IndexMapper, "$key", 'friendID');
394+
const friendIndex = friends.map(IndexMapper, "$key", "friendID");
395395
const groupMemberIndex = inputCollections.groupMembers.map(
396396
IndexMapper,
397397
"groupID",

0 commit comments

Comments
 (0)