mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-11 13:52:19 +00:00
chore: remove temporary formatter diagnostics
This commit is contained in:
1 parent
989e740d6e
commit
cacbbc972b
1 file changed
-9
@@ -120,15 +120,6 @@ export async function formatAdoptedFiles(root, mode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const changed = files.filter(({ source, formatted }) => source !== formatted);
|
const changed = files.filter(({ source, formatted }) => source !== formatted);
|
||||||
if (mode === '--check') {
|
|
||||||
const target = changed.find(
|
|
||||||
({ name }) => name === 'src/voice/realtimeViewportPolicy.test.mjs',
|
|
||||||
);
|
|
||||||
if (target)
|
|
||||||
console.error(
|
|
||||||
`FORMAT_EXPECTED BEGIN\n${target.formatted}FORMAT_EXPECTED END`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (mode === '--write') {
|
if (mode === '--write') {
|
||||||
for (const { file, formatted } of changed) await writeFile(file, formatted);
|
for (const { file, formatted } of changed) await writeFile(file, formatted);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user