Skip to content

Commit

Permalink
Fix more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Nov 22, 2024
1 parent 14c3da9 commit 9b3616a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/civic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,18 @@ const upload = async ({
if (sourceIdstoDeleteStatementsFrom.length > 0) {
if (!deleteDeprecated) {
// Do not delete any statements if no deleteDeprecated flag
const deprecatedStatementRids = await getStatements(conn, { source: sourceRid, sourceIds: sourceIdstoDeleteStatementsFrom });
const deprecatedStatementRids = await getStatements(
conn,
{ source: sourceRid, sourceIds: sourceIdstoDeleteStatementsFrom },
);
logger.warn(`${deprecatedStatementRids.length} corresponding deprecated statement(s). To be reviewed since no deleteDeprecated flag`);

Check failure on line 448 in src/civic/index.js

View workflow job for this annotation

GitHub Actions / node-12

Trailing spaces not allowed

Check failure on line 448 in src/civic/index.js

View workflow job for this annotation

GitHub Actions / node-16

Trailing spaces not allowed

const deprecatedStatementsFilepath = `${errorLogPrefix}-civic-deprecatedStatements.json`;
logger.info(`writing ${deprecatedStatementsFilepath}`);
fs.writeFileSync(deprecatedStatementsFilepath, JSON.stringify(deprecatedStatementRids, null, 2));
fs.writeFileSync(
deprecatedStatementsFilepath,
JSON.stringify(deprecatedStatementRids, null, 2),
);
} else {
const deletedCount = await deleteStatements(conn, {

Check failure on line 457 in src/civic/index.js

View workflow job for this annotation

GitHub Actions / node-12

Expected indentation of 12 spaces but found 8

Check failure on line 457 in src/civic/index.js

View workflow job for this annotation

GitHub Actions / node-16

Expected indentation of 12 spaces but found 8
source: sourceRid,

Check failure on line 458 in src/civic/index.js

View workflow job for this annotation

GitHub Actions / node-12

Expected indentation of 16 spaces but found 12

Check failure on line 458 in src/civic/index.js

View workflow job for this annotation

GitHub Actions / node-16

Expected indentation of 16 spaces but found 12
Expand Down

0 comments on commit 9b3616a

Please sign in to comment.