Skip to content

Commit

Permalink
zoho: fix error when region isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
buengese committed Apr 5, 2021
1 parent 9eab258 commit 0caf417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/zoho/zoho.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0caf417

Please sign in to comment.