Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-02 14:48:00 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2022-06-02 14:48:10 +0300
commite281682390728361887e13f482428ae922e848b3 (patch)
treeb08dcecb32fdc6a9c7f3104a9f1c22c6a634f150 /app.go
parent69073505e0cc158c352180f404b7519361ceec6f (diff)
Remove unused empty check on artifacts server URL
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 1 insertions, 3 deletions
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