Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <[email protected]>
  • Loading branch information
stevecassidy committed Nov 6, 2023
1 parent 628a30a commit 7876f66
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
17 changes: 11 additions & 6 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
"language": "en-GB",
// words - list of words to be always considered correct
"words": [
"automerge",
"avps",
"datamodel",
"FAIMS",
"FAIMSEVENTTYPE",
"frev",
"fviews",
"HRID",
"Macquarie",
"datamodel",
"pubalg",
"uidesign",
"uuidv4",
"HRID",
"frev",
"avps",
"vocab",
"automerge"
"viewsets",
"vocab"
]
}
5 changes: 1 addition & 4 deletions src/data_storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ import {
RevisionID,
ProjectRevisionListing,
RecordRevisionListing,
RecordMetadataList,
AttributeValuePair,
} from '../types';
import {shouldDisplayRecord} from '../index';
import {
Expand All @@ -54,7 +52,6 @@ import {
updateHeads,
getHRID,
listRecordMetadata,
getAllRecords,
} from './internals';
import {getAllRecordsOfType, getAllRecordsWithRegex} from './queries';
import {logError} from '../logging';
Expand Down Expand Up @@ -553,7 +550,7 @@ export const notebookRecordIterator = async (
// deal with no records
if (records.length === 0) {
return {next: async () => ({record: null, done: true})};
};
}
let index = 0;

const recordIterator = {
Expand Down
2 changes: 1 addition & 1 deletion src/datamodel/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ export function split_full_record_id(
project_id: cleaned_project_id,
record_id: splitId[1],
};
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export {
mergeHeads,
resolve_project_id,
saveUserMergeResult,
setRecordAsDeleted,
setRecordAsDeleted,
split_full_project_id,
upsertFAIMSData,
setAttachmentLoaderForType,
Expand Down
4 changes: 2 additions & 2 deletions src/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
* Wrappers for logging functions for errors etc.
*/

// TODO: removed bugsnag from here but the frontend will want to
// TODO: removed bugsnag from here but the frontend will want to
// report errors that way - need to pass in an error logger?

export const logError = (error: any) => {
console.error(error);
console.error(error);
};
2 changes: 1 addition & 1 deletion tests/attachments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('attachments', () => {
'Some Text Data'
);
}
};
}
});
});

Expand Down

0 comments on commit 7876f66

Please sign in to comment.