Skip to content

Commit 78e70dd

Browse files
committed
Keep it DRY
1 parent fef9362 commit 78e70dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev_tools/ci/size-labeler.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,11 @@ function api_call() {
9696
response_body=$(curl "${curl_opts[@]}" "${@:2}" "${url}")
9797
local exit_status=$?
9898
set -e
99+
echo "${response_body}"
99100
if [[ $exit_status -ne 0 ]]; then
100101
error "GitHub API call failed (curl exit $exit_status) for ${url}"
101-
echo "${response_body}"
102102
exit $exit_status
103103
fi
104-
echo "${response_body}"
105104
}
106105

107106
function compute_changes() {

0 commit comments

Comments
 (0)