fix some toggles; format

This commit is contained in:
end-4
2024-04-15 23:55:57 +07:00
parent c1d65beb42
commit f173fbb7ad
3 changed files with 5 additions and 8 deletions
@@ -39,12 +39,9 @@ function substituteLang(str) {
{ from: 'javascript', to: 'js' },
{ from: 'bash', to: 'sh' },
];
for (const { from, to } of subs) {
if (from === str)
return to;
if (from === str) return to;
}
return str;
}