Skip to content

Commit

Permalink
fix: removed unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
pavan-dulam committed Apr 26, 2024
1 parent 4e9fa64 commit 187e440
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Security/CheckGroups/CheckGroupDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ class CheckGroupDatabase extends CheckGroup {
} else if (config.databaseURI) {

Check warning on line 22 in src/Security/CheckGroups/CheckGroupDatabase.js

View check run for this annotation

Codecov / codecov/patch

src/Security/CheckGroups/CheckGroupDatabase.js#L22

Added line #L22 was not covered by tests
// If database adapter is not defined, fallback to config.databaseURI
databaseUrl = config.databaseURI;

Check warning on line 24 in src/Security/CheckGroups/CheckGroupDatabase.js

View check run for this annotation

Codecov / codecov/patch

src/Security/CheckGroups/CheckGroupDatabase.js#L24

Added line #L24 was not covered by tests
} else {
// Handle the case where neither database adapter nor databaseURI is defined
throw 1;
}
}

Check failure on line 25 in src/Security/CheckGroups/CheckGroupDatabase.js

View workflow job for this annotation

GitHub Actions / Lint

Trailing spaces not allowed
return [
new Check({
title: 'Secure database password',
Expand Down

0 comments on commit 187e440

Please sign in to comment.