From 5495447aad67b80bfbc2a18b7b955084d94cda70 Mon Sep 17 00:00:00 2001 From: tnsetting <38207208+tnsetting@users.noreply.github.com> Date: Wed, 30 Oct 2019 14:17:44 +0100 Subject: [PATCH] remove requires for json The json string is optional when creating the client. It is a bit weird to have a json in the config as an empty string. --- google/config.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/google/config.go b/google/config.go index 082d7092..5db6f84f 100644 --- a/google/config.go +++ b/google/config.go @@ -26,11 +26,6 @@ const ( func init() { validatefn := func(config stow.Config) error { - _, ok := config.Config(ConfigJSON) - if !ok { - return errors.New("missing JSON configuration") - } - _, ok = config.Config(ConfigProjectId) if !ok { return errors.New("missing Project ID") @@ -38,11 +33,6 @@ func init() { return nil } makefn := func(config stow.Config) (stow.Location, error) { - _, ok := config.Config(ConfigJSON) - if !ok { - return nil, errors.New("missing JSON configuration") - } - _, ok = config.Config(ConfigProjectId) if !ok { return nil, errors.New("missing Project ID")