Skip to content

Commit 19025fc

Browse files
committed
chore: better
1 parent d298d1e commit 19025fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/specs/snippets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function getHelperSnippet(
2424
helperName: keyof typeof helperSnippets,
2525
language: string,
2626
): Record<string, string> | string {
27-
if (Object.entries(helperSnippets[helperName][language]).length === 1) {
27+
if (typeof helperSnippets[helperName][language] === 'string') {
2828
return {
2929
default: helperSnippets[helperName][language],
3030
};

0 commit comments

Comments
 (0)