Skip to content

Fix lint task#2546

Merged
SoniEx2 merged 3 commits into
WebAssembly:mainfrom
SoniEx2:fix-lint
Feb 18, 2025
Merged

Fix lint task#2546
SoniEx2 merged 3 commits into
WebAssembly:mainfrom
SoniEx2:fix-lint

Conversation

@SoniEx2

@SoniEx2 SoniEx2 commented Feb 18, 2025

Copy link
Copy Markdown
Collaborator

git clang-format appears to now return an exit status instead of always succeeding, and the change broke the script. this fixes it.

git clang-format appears to now return an exit status instead of always
succeeding, and the change broke the script. so, just make it always
succeed again.
@SoniEx2 SoniEx2 requested a review from sbc100 February 18, 2025 16:06
Comment thread scripts/clang-format-diff.sh Outdated
Comment thread scripts/clang-format-diff.sh Outdated
FORMAT_MSG=$(git clang-format $MERGE_BASE -q --diff -- src/ || true)
if [ -n "$FORMAT_MSG" -a "$FORMAT_MSG" != "no modified files to format" ]
if ! git clang-format $MERGE_BASE -q --diff -- src/ 2>&1 >/dev/null
then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this ; then to the line above?

@SoniEx2 SoniEx2 merged commit 40be47d into WebAssembly:main Feb 18, 2025
@SoniEx2 SoniEx2 deleted the fix-lint branch February 18, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants