From b37fd7f3af02e6888a9d4ed6ec7109d550b01fd0 Mon Sep 17 00:00:00 2001 From: Chafik Bel Date: Tue, 13 Dec 2016 19:54:19 +0100 Subject: [PATCH] Remove unused vars checking The length of the 2 vars ENTITYID and BASEURL can't be zero since there is a control before 'if [ "$#" -lt 2 ]'. --- mellon_create_metadata.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mellon_create_metadata.sh b/mellon_create_metadata.sh index 2777f20..1a1fe6f 100755 --- a/mellon_create_metadata.sh +++ b/mellon_create_metadata.sh @@ -17,16 +17,7 @@ if [ "$#" -lt 2 ]; then fi ENTITYID="$1" -if [ -z "$ENTITYID" ]; then - echo "$PROG: An entity ID is required." >&2 - exit 1 -fi - BASEURL="$2" -if [ -z "$BASEURL" ]; then - echo "$PROG: The URL to the MellonEndpointPath is required." >&2 - exit 1 -fi if ! echo "$BASEURL" | grep -q '^https\?://'; then echo "$PROG: The URL must start with \"http://\" or \"https://\"." >&2