From e281682390728361887e13f482428ae922e848b3 Mon Sep 17 00:00:00 2001 From: feistel <6742251-feistel@users.noreply.gitlab.com> Date: Thu, 2 Jun 2022 13:48:00 +0200 Subject: Remove unused empty check on artifacts server URL --- app.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app.go') diff --git a/app.go b/app.go index 6f7537c7..2c5b87ab 100644 --- a/app.go +++ b/app.go @@ -421,9 +421,7 @@ func runApp(config *cfg.Config) error { return fmt.Errorf("failed to initialize logging: %w", err) } - if config.ArtifactsServer.URL != "" { - a.Artifact = artifact.New(config.ArtifactsServer.URL, config.ArtifactsServer.TimeoutSeconds, config.General.Domain) - } + a.Artifact = artifact.New(config.ArtifactsServer.URL, config.ArtifactsServer.TimeoutSeconds, config.General.Domain) if err := a.setAuth(config); err != nil { return err -- cgit v1.2.3