Skip to content

Commit 923ad9d

Browse files
[PATCH] Apply changes from review
Update tests/check_spelling Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 4097176 commit 923ad9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/check_spelling

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ for FILE in $FILES_TO_CHECK; do
223223

224224
# Auto-correct if --fix is provided
225225
if [[ "$1" == "--fix" ]]; then
226-
{ sed -i "s/$TYPO/$CORRECTION/g" "${FILE}" 2>/dev/null && \
227-
printf "::notice file=%s,title=Auto-corrected::%s\n" "$FILE" "Fixed typo '$TYPO' to '$CORRECTION'" ;} || :
226+
if sed -i "s/$TYPO/$CORRECTION/g" "${FILE}" 2>/dev/null; then
227+
printf "::notice file=%s,title=Auto-corrected::%s\n" "$FILE" "Fixed typo '$TYPO' to '$CORRECTION'"
228+
fi
228229
fi
229230
fi
230231
unset TYPO 2>/dev/null || : ;

0 commit comments

Comments
 (0)