Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BCsabaEngine committed Aug 19, 2024
1 parent da60064 commit 2f36272
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions demo/esp32/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <ESPAsyncWebServer.h>
#include "svelteesp32async.h"

#if SVELTEESP32_COUNT != 10
#if SVELTEESP32_COUNT != 11
#error Invalid file count
#endif

Expand Down Expand Up @@ -40,7 +40,7 @@ void loop() {}
#include <PsychicHttp.h>
#include "svelteesp32psychic.h"

#if SVELTEESP32_COUNT != 10
#if SVELTEESP32_COUNT != 11
#error Invalid file count
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const getFiles = (): Map<string, Buffer> => {
if (['.gz', '.brottli', '.br'].includes(extension)) {
const original = filename.slice(0, -1 * extension.length);
if (filenames.includes(original)) {
console.log(redLog(`${filename} skipped because is perhaps a compressed version of ${original}`));
console.log(redLog(` ${filename} skipped because is perhaps a compressed version of ${original}`));
return false;
}
}
Expand All @@ -38,6 +38,6 @@ export const getFiles = (): Map<string, Buffer> => {
for (const filename of filenames)
result.set(filename, readFileSync(path.join(cmdLine.sourcepath, filename), { flag: 'r' }));
for (const sameFile of findSimilarFiles(result))
console.log(yellowLog(`${sameFile.join(', ')} files look like identical`));
console.log(yellowLog(` ${sameFile.join(', ')} files look like identical`));
return result;
};
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ for (const [originalFilename, content] of files) {
});
console.log(
greenLog(
`[${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} ✓ gzip used (${content.length} -> ${zipContent.length} = ${zipRatio}%)`
` [${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} ✓ gzip used (${content.length} -> ${zipContent.length} = ${zipRatio}%)`
)
);
} else {
Expand All @@ -77,7 +77,7 @@ for (const [originalFilename, content] of files) {
});
console.log(
yellowLog(
`[${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} x gzip unused ${content.length <= 1024 ? `(too small) ` : ''}(${content.length} -> ${zipContent.length} = ${zipRatio}%)`
` [${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} x gzip unused ${content.length <= 1024 ? `(too small) ` : ''}(${content.length} -> ${zipContent.length} = ${zipRatio}%)`
)
);
}
Expand Down

0 comments on commit 2f36272

Please sign in to comment.