fix: resolve biome lint errors

- Use optional chaining for nullable checks
- Replace template literals with string literals for plain SQL
- Add node: protocol to fs/promises import in setup.js
This commit is contained in:
Dimas R. Wisnu committed 2026-08-07 17:01:20 +07:00
1 parent 4a0f212289
commit 35ad8227d7
3 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ const omissions = () => {
* @returns {Promise}
*/
const fetchLocationAccessLists = async (host) => {
if (!host.locations || !host.locations.length) {
if (!host.locations?.length) {
return;
}
for (let i = 0; i < host.locations.length; i++) {