Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sefinek committed May 12, 2024
1 parent 58cd571 commit c68baf4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/prepare-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const processDirectory = async dirPath => {
await mkdir(dirPath, { recursive: true });

const fileNames = await readdir(dirPath);
const txtFiles = fileNames.filter((fileName) => fileName.endsWith('.txt'));
const txtFiles = fileNames.filter(fileName => fileName.endsWith('.txt'));

await Promise.all(
txtFiles.map(async (fileName) => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/remove-duplicates.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const processDirectory = async dirPath => {
await mkdir(dirPath, { recursive: true });

const fileNames = await readdir(dirPath);
const txtFiles = fileNames.filter((fileName) => fileName.endsWith('.txt'));
const txtFiles = fileNames.filter(fileName => fileName.endsWith('.txt'));

for (const fileName of txtFiles) {
const filePath = join(dirPath, fileName);
Expand Down
2 changes: 1 addition & 1 deletion scripts/sort-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const processDirectory = async dirPath => {
await mkdir(dirPath, { recursive: true });

const fileNames = await readdir(dirPath);
const txtFiles = fileNames.filter((fileName) => fileName.endsWith('.txt'));
const txtFiles = fileNames.filter(fileName => fileName.endsWith('.txt'));

for (const fileName of txtFiles) {
const filePath = join(dirPath, fileName);
Expand Down
2 changes: 1 addition & 1 deletion scripts/whitelist.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { readdir, readFile, writeFile } = require('node:fs/promises');
const { join, relative } = require('node:path');

const loadWhitelist = async (whitelistPath) => {
const loadWhitelist = async whitelistPath => {
const whitelistContent = await readFile(whitelistPath, 'utf8');
const whitelistMap = new Map();
const globalWhitelist = new Set();
Expand Down

0 comments on commit c68baf4

Please sign in to comment.