From d6e1888ec25570605c8dc6323f444459d73491e5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 23 Sep 2025 08:03:09 +0100 Subject: [PATCH] Refactor Signed-off-by: Oliver Davies --- go-api/fail | 3 ++- go-api/success | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go-api/fail b/go-api/fail index 3364b29..40e78a5 100755 --- a/go-api/fail +++ b/go-api/fail @@ -8,5 +8,6 @@ STATUS_CODE="${1:-500}" : "${API_PORT:=8000}" -curl --silent --show-error --verbose "http://localhost:$API_PORT" \ +curl --silent --show-error --verbose \ + "http://localhost:$API_PORT" \ --header "force-fail: $STATUS_CODE" diff --git a/go-api/success b/go-api/success index a9ddcca..27ffadd 100755 --- a/go-api/success +++ b/go-api/success @@ -6,4 +6,5 @@ source .env : "${API_PORT:=8000}" -curl --silent --show-error --verbose "http://localhost:$API_PORT" +curl --silent --show-error --verbose \ + "http://localhost:$API_PORT"