mirror of
https://github.com/makew0rld/amfora.git
synced 2024-11-23 14:19:12 +03:00
Lint fix
This commit is contained in:
parent
034b4c019d
commit
d312a801e3
@ -191,6 +191,7 @@ func open(u string, resp *gemini.Response) {
|
||||
Error("File Opening Error", "Error executing custom command: "+err.Error())
|
||||
return
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
Info("Opened with " + cmd[0])
|
||||
return
|
||||
@ -221,6 +222,7 @@ func open(u string, resp *gemini.Response) {
|
||||
Error("File Opening Error", "Error executing custom command: "+err.Error())
|
||||
return
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
Info("Opened with " + cmd[0])
|
||||
}
|
||||
|
@ -59,6 +59,7 @@ func handleHTTP(u string, showInfo bool) bool {
|
||||
Error("HTTP Error", "Error executing custom browser command: "+err.Error())
|
||||
return false
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
Info("Opened with: " + config.HTTPCommand[0])
|
||||
|
||||
@ -116,6 +117,7 @@ func handleOther(u string) {
|
||||
if err != nil {
|
||||
Error("URL Error", "Error executing custom command: "+err.Error())
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
Info("Opened with: " + handler[0])
|
||||
App.Draw()
|
||||
|
@ -12,6 +12,7 @@ func Open(path string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in default system viewer", nil
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ func Open(path string) (string, error) {
|
||||
if err := proc.Start(); err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in default system viewer", nil
|
||||
default:
|
||||
|
@ -13,6 +13,7 @@ func Open(path string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in default system viewer", nil
|
||||
}
|
||||
|
@ -12,6 +12,7 @@ func Open(url string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in system default web browser", nil
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ func Open(url string) (string, error) {
|
||||
if err := proc.Start(); err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in system default web browser", nil
|
||||
case envBrowser != "":
|
||||
@ -45,6 +46,7 @@ func Open(url string) (string, error) {
|
||||
if err := proc.Start(); err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in system default web browser", nil
|
||||
default:
|
||||
|
@ -13,6 +13,7 @@ func Open(url string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
//nolint:errcheck
|
||||
go proc.Wait() // Prevent zombies, see #219
|
||||
return "Opened in system default web browser", nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user