Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

gui: remove flag.Lookup test guard around browser open

Nick Craig-Wood7b9ac79ab436
diff --git a/cmd/gui/gui.go b/cmd/gui/gui.go
index eb082e26f..fbe03bc38 100644
--- a/cmd/gui/gui.go
+++ b/cmd/gui/gui.go
@@ -5,7 +5,6 @@ import (
"archive/zip"
"context"
"embed"
- "flag"
"fmt"
iofs "io/fs"
"net/http"
@@ -196,9 +195,9 @@ Use --no-auth to disable authentication entirely:
loginURL := buildLoginURL(guiURL, rcURL, opt.Auth.BasicUser, opt.Auth.BasicPass, opt.NoAuth)
fs.Logf(nil, "GUI available at %s", loginURL)
- if flag.Lookup("test.v") == nil && !noOpenBrowser {
+ if !noOpenBrowser {
if err := open.Start(loginURL); err != nil {
- fs.Errorf(nil, "Failed to open GUI in browser: %v", err)
+ fs.Errorf(nil, "failed to open GUI in browser: %v", err)
}
}