Skip to content

Commit 3dc29cf

Browse files
committed
lint
1 parent f945700 commit 3dc29cf

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/inbox/inboxLogic.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { InboxLogic } from "../types";
33
import { getArchiveUrl } from "../util/utils";
44

55
export function createInboxLogic(store, profileLogic, utilityLogic, containerLogic, aclLogic): InboxLogic {
6-
6+
77
async function createInboxFor(peerWebId: string, nick: string) {
88
const myWebId: NamedNode = await profileLogic.loadMe();
99
const podRoot: NamedNode = await profileLogic.getPodRoot(myWebId);
1010
const ourInbox = `${podRoot.value}p2p-inboxes/${encodeURIComponent(nick)}/`;
1111
await containerLogic.createContainer(ourInbox);
12-
const aclDocUrl = await aclLogic.findAclDocUrl(ourInbox);
12+
// const aclDocUrl = await aclLogic.findAclDocUrl(ourInbox);
1313
await utilityLogic.setSinglePeerAccess({
1414
ownerWebId: myWebId.value,
1515
peerWebId,
@@ -55,4 +55,4 @@ export function createInboxLogic(store, profileLogic, utilityLogic, containerLog
5555
getNewMessages,
5656
markAsRead
5757
}
58-
}
58+
}

src/profile/profileLogic.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function createProfileLogic(store, authn, utilityLogic): ProfileLogic {
1111
/**
1212
* loads the preference without throwing errors - if it can create it it does so.
1313
* remark: it still throws error if it cannot load profile.
14-
* @param user
14+
* @param user
1515
* @returns undefined if preferenceFile cannot be returned or NamedNode if it can find it or create it
1616
*/
1717
async function silencedLoadPreferences(user: NamedNode): Promise <NamedNode | undefined> {
@@ -25,7 +25,7 @@ export function createProfileLogic(store, authn, utilityLogic): ProfileLogic {
2525
/**
2626
* loads the preference without returning different errors if it cannot create or load it.
2727
* remark: it also throws error if it cannot load profile.
28-
* @param user
28+
* @param user
2929
* @returns undefined if preferenceFile cannot be an Error or NamedNode if it can find it or create it
3030
*/
3131
async function loadPreferences (user: NamedNode): Promise <NamedNode> {
@@ -48,9 +48,8 @@ export function createProfileLogic(store, authn, utilityLogic): ProfileLogic {
4848
throw err
4949
}
5050

51-
let response
5251
try {
53-
response = await store.fetcher.load(preferencesFile as NamedNode)
52+
await store.fetcher.load(preferencesFile as NamedNode)
5453
} catch (err) { // Maybe a permission problem or origin problem
5554
const msg = `Unable to load preference of user ${user}: ${err}`
5655
debug.warn(msg)
@@ -123,4 +122,3 @@ export function createProfileLogic(store, authn, utilityLogic): ProfileLogic {
123122
silencedLoadPreferences
124123
}
125124
}
126-

src/typeIndex/typeIndexLogic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NamedNode, st, sym } from 'rdflib'
22
import { ScopedApp, TypeIndexLogic, TypeIndexScope } from '../types'
33
import * as debug from "../util/debug"
44
import { ns as namespace } from '../util/ns'
5-
import { newThing, uniqueNodes } from "../util/utils"
5+
import { newThing } from "../util/utils"
66

77
export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic): TypeIndexLogic {
88
const ns = namespace
@@ -155,7 +155,7 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
155155

156156
async function getScopedAppsFromIndex(scope: TypeIndexScope, theClass: NamedNode | null): Promise<ScopedApp[]> {
157157
const index = scope.index
158-
let results: ScopedApp[] = []
158+
const results: ScopedApp[] = []
159159
const registrations = store.statementsMatching(null, ns.solid('instance'), null, index)
160160
.concat(store.statementsMatching(null, ns.solid('instanceContainer'), null, index))
161161
.map(st => st.subject)

0 commit comments

Comments
 (0)