Skip to content

Commit

Permalink
use exit instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Aug 14, 2024
1 parent 7f4c34a commit 51a202b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/scripts/ci/find_slither_report_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ openai_result=$(echo '{
# throw error openai_result when is not 200
if [ "$openai_result" != '200' ]; then
echo "::error::OpenAI API call failed with status $openai_result: $(cat prompt_response.json)"
return 1
exit 1
fi

# replace lines starting with ' -' (1space) with ' -' (2spaces)
Expand Down Expand Up @@ -80,7 +80,7 @@ if [[ -n "$validation_prompt_path" ]]; then
# throw error openai_result when is not 200
if [ "$validation_result" != '200' ]; then
echo "::error::OpenAI API call failed with status $validation_result: $(cat prompt_validation_response.json)"
return 1
exit 1
fi

# replace lines starting with ' -' (1space) with ' -' (2spaces)
Expand Down

0 comments on commit 51a202b

Please sign in to comment.