summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCheng <36215014+ChengenH@users.noreply.github.com>2024-04-22 08:35:33 +0800
committerGitHub <noreply@github.com>2024-04-22 09:35:33 +0900
commitd18d92f925f791271b095df968d290ced05d065a (patch)
treec4b38421a18a0991fcfee3e0a586cc6b9ef905d6 /src
parentaf3ce47c44a4abde45708c8808f44699e12aea65 (diff)
Replace fmt.Errorf with no parameters with errors.New (#3747)
Diffstat (limited to 'src')
-rw-r--r--src/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.go b/src/server.go
index 082d9278..aa80eb4f 100644
--- a/src/server.go
+++ b/src/server.go
@@ -78,7 +78,7 @@ func startHttpServer(address listenAddress, actionChannel chan []*action, respon
port := address.port
apiKey := os.Getenv("FZF_API_KEY")
if !address.IsLocal() && len(apiKey) == 0 {
- return port, fmt.Errorf("FZF_API_KEY is required to allow remote access")
+ return port, errors.New("FZF_API_KEY is required to allow remote access")
}
addrStr := fmt.Sprintf("%s:%d", host, port)
listener, err := net.Listen("tcp", addrStr)