Skip to content

Commit e79225f

Browse files
brianfunkclaude
andcommitted
fix: add braces to case block to fix eslint error
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c3493fe commit e79225f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const capstring = (str, style = 'same') => {
194194
i % 2 === 0 ? char.toLowerCase() : char.toUpperCase()
195195
).join('');
196196

197-
case 'alternate':
197+
case 'alternate': {
198198
// aLtErNaTe - alternates only on letters, ignoring spaces
199199
let letterIndex = 0;
200200
return str.split('').map(char => {
@@ -205,6 +205,7 @@ const capstring = (str, style = 'same') => {
205205
}
206206
return char;
207207
}).join('');
208+
}
208209

209210
case 'crazy':
210211
// cRaZy CaSe - pseudo-random based on char code (deterministic but looks random)

0 commit comments

Comments
 (0)