Skip to content

Commit 2f36272

Browse files
committed
chore: typo
1 parent da60064 commit 2f36272

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

demo/esp32/src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <ESPAsyncWebServer.h>
77
#include "svelteesp32async.h"
88

9-
#if SVELTEESP32_COUNT != 10
9+
#if SVELTEESP32_COUNT != 11
1010
#error Invalid file count
1111
#endif
1212

@@ -40,7 +40,7 @@ void loop() {}
4040
#include <PsychicHttp.h>
4141
#include "svelteesp32psychic.h"
4242

43-
#if SVELTEESP32_COUNT != 10
43+
#if SVELTEESP32_COUNT != 11
4444
#error Invalid file count
4545
#endif
4646

src/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const getFiles = (): Map<string, Buffer> => {
2727
if (['.gz', '.brottli', '.br'].includes(extension)) {
2828
const original = filename.slice(0, -1 * extension.length);
2929
if (filenames.includes(original)) {
30-
console.log(redLog(`${filename} skipped because is perhaps a compressed version of ${original}`));
30+
console.log(redLog(` ${filename} skipped because is perhaps a compressed version of ${original}`));
3131
return false;
3232
}
3333
}
@@ -38,6 +38,6 @@ export const getFiles = (): Map<string, Buffer> => {
3838
for (const filename of filenames)
3939
result.set(filename, readFileSync(path.join(cmdLine.sourcepath, filename), { flag: 'r' }));
4040
for (const sameFile of findSimilarFiles(result))
41-
console.log(yellowLog(`${sameFile.join(', ')} files look like identical`));
41+
console.log(yellowLog(` ${sameFile.join(', ')} files look like identical`));
4242
return result;
4343
};

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ for (const [originalFilename, content] of files) {
6161
});
6262
console.log(
6363
greenLog(
64-
`[${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} ✓ gzip used (${content.length} -> ${zipContent.length} = ${zipRatio}%)`
64+
` [${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} ✓ gzip used (${content.length} -> ${zipContent.length} = ${zipRatio}%)`
6565
)
6666
);
6767
} else {
@@ -77,7 +77,7 @@ for (const [originalFilename, content] of files) {
7777
});
7878
console.log(
7979
yellowLog(
80-
`[${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} x gzip unused ${content.length <= 1024 ? `(too small) ` : ''}(${content.length} -> ${zipContent.length} = ${zipRatio}%)`
80+
` [${originalFilename}] ${' '.repeat(longestFilename - originalFilename.length)} x gzip unused ${content.length <= 1024 ? `(too small) ` : ''}(${content.length} -> ${zipContent.length} = ${zipRatio}%)`
8181
)
8282
);
8383
}

0 commit comments

Comments
 (0)