From 9a6f2e1034f335bf76584c11d4af73dd936eb2a5 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Wed, 12 May 2021 10:36:37 +0100 Subject: [PATCH] Fix: Remove unnecessary clutter. --- gql.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gql.go b/gql.go index 3709f90..76f5232 100644 --- a/gql.go +++ b/gql.go @@ -28,11 +28,7 @@ type requestBase struct { func prepare() { value, present := os.LookupEnv("GRAPHQL_ENDPOINT") if GraphQLUrl == "" && present { - if present { - GraphQLUrl = value - } else { - GraphQLUrl = "http://127.0.0.1:8080/v1/graphql" - } + GraphQLUrl = value } else if GraphQLUrl == "" && !present { GraphQLUrl = "http://127.0.0.1:9090/v1/graphql" }