From 0caf417779c35457f923b6d84879318711f98db5 Mon Sep 17 00:00:00 2001 From: buengese Date: Mon, 5 Apr 2021 15:11:30 +0200 Subject: [PATCH] zoho: fix error when region isn't set --- backend/zoho/zoho.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/zoho/zoho.go b/backend/zoho/zoho.go index f8a325469..1774335b5 100644 --- a/backend/zoho/zoho.go +++ b/backend/zoho/zoho.go @@ -161,7 +161,7 @@ type Object struct { func setupRegion(m configmap.Mapper) { region, ok := m.Get("region") - if !ok { + if !ok || region == "" { log.Fatalf("No region set\n") } rootURL = fmt.Sprintf("https://workdrive.zoho.%s/api/v1", region)