Skip to content

Commit 4c36044

Browse files
remove console.log
1 parent 23b1d1d commit 4c36044

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

tasks/vanilla/src/tasks.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ function lastWord(str: string): string {
128128
}
129129

130130
function isUplink(entry: object, indexUri: string, stateUri: string): boolean {
131-
// console.log('checking for uplink', getJsonLdId(entry), indexUri, entry['http://www.w3.org/2005/01/wf/flow#stateStore'], stateUri);
132131
return (
133132
getJsonLdId(entry) === indexUri &&
134133
getJsonLdLinkField(
@@ -140,7 +139,6 @@ function isUplink(entry: object, indexUri: string, stateUri: string): boolean {
140139

141140
function getIssueState(entry: object): string | undefined {
142141
const typeStr = getJsonLdType(entry);
143-
// console.log('checking issue state', typeStr);
144142
if (
145143
typeof typeStr === 'string' &&
146144
typeStr.startsWith('http://www.w3.org/2005/01/wf/flow#')
@@ -199,14 +197,11 @@ function interpret({
199197
[uri: string]: InterpretedComment;
200198
} = {};
201199
state.forEach((entry: TrackerStateEntry) => {
202-
// console.log('state entry', JSON.stringify(entry, null, 2));
203200
if (isUplink(entry, indexUri, stateUri)) {
204-
// console.log('uplink found');
205201
return;
206202
}
207203
const issueState = getIssueState(entry);
208204
if (typeof issueState === 'string') {
209-
// console.log('issue');
210205
ret.issues[getJsonLdId(entry)] = {
211206
// tracker: getJsonLdLinkField(entry, 'http://www.w3.org/2005/01/wf/flow#tracker'),
212207
title: getJsonLdStringField(
@@ -231,15 +226,12 @@ function interpret({
231226
text: getJsonLdStringField(entry, 'http://rdfs.org/sioc/ns#content'),
232227
created: getJsonLdDateField(entry, 'http://purl.org/dc/terms/created'),
233228
};
234-
console.log(comment);
235229
if (
236230
typeof comment.author === 'string' &&
237231
typeof comment.text === 'string' &&
238232
comment.created instanceof Date
239233
) {
240-
// console.log('issue');
241234
comments[getJsonLdId(entry)] = comment as InterpretedComment;
242-
// console.log('comment found', comment);
243235
return;
244236
}
245237
console.error(entry);
@@ -275,12 +267,6 @@ export async function addIssue(
275267
authenticatedFetcher: typeof globalThis.fetch,
276268
): Promise<string> {
277269
const id = `${localState.tracker.stateUri}#Iss${randomUUID()}`;
278-
console.log(
279-
localState.tracker.stateUri,
280-
title,
281-
description,
282-
typeof authenticatedFetcher,
283-
);
284270
const inserts = [
285271
`<${id}> a <http://www.w3.org/2005/01/wf/flow#Open>.`,
286272
`<${id}> <http://www.w3.org/2005/01/wf/flow#tracker> <${localState.tracker.indexUri}>.`,
@@ -301,7 +287,6 @@ export async function addIssue(
301287
},
302288
body,
303289
});
304-
console.log(ret.status);
305290
return id;
306291
}
307292

@@ -315,12 +300,6 @@ export async function addComment(
315300
authenticatedFetcher: typeof globalThis.fetch,
316301
): Promise<string> {
317302
const id = `${localState.tracker.stateUri}#Msg${randomUUID()}`;
318-
console.log(
319-
localState.tracker.stateUri,
320-
author,
321-
text,
322-
typeof authenticatedFetcher,
323-
);
324303
const inserts = [
325304
`<${issueUri}> <http://www.w3.org/2005/01/wf/flow#message> <${id}>.`,
326305
`<${id}> <http://xmlns.com/foaf/0.1/maker> <${author}>.`,
@@ -340,6 +319,5 @@ export async function addComment(
340319
},
341320
body,
342321
});
343-
console.log(ret.status);
344322
return id;
345323
}

0 commit comments

Comments
 (0)