1
0

Formatting fixing.

This commit is contained in:
Alexander Andreev 2021-11-04 00:17:17 +04:00
parent 4ed4b466b0
commit e594c0024f
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -175,8 +175,8 @@ func version() {
fmt.Println("httpprocwatchd ver. 1.1") fmt.Println("httpprocwatchd ver. 1.1")
fmt.Println("Copyright (c) 2021 Alexander \"Arav\" Andreev <me@arav.top>") fmt.Println("Copyright (c) 2021 Alexander \"Arav\" Andreev <me@arav.top>")
fmt.Println("License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.") fmt.Println("License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.")
fmt.Println("This is free software, and you are welcome to change and redistribute it.") fmt.Println("This is free software, and you are welcome to change and redistribute it.")
fmt.Println("There is NO WARRANTY, to the extent permitted by law.") fmt.Println("There is NO WARRANTY, to the extent permitted by law.")
} }
var oConfigPath string var oConfigPath string
@ -227,7 +227,7 @@ func main() {
if oAddProcess != "" { if oAddProcess != "" {
err := AddProcessToList(oAddProcess, conf, oConfigPath) err := AddProcessToList(oAddProcess, conf, oConfigPath)
if err != nil { if err != nil {
log.Fatalf("Cannot add process: %s\n", err) log.Fatalf("Cannot add process: %s\n", err)
} }
return return
} }
@ -235,7 +235,7 @@ func main() {
if oRemoveProcess != "" { if oRemoveProcess != "" {
err := RemoveProcessFromList(oRemoveProcess, conf, oConfigPath) err := RemoveProcessFromList(oRemoveProcess, conf, oConfigPath)
if err != nil { if err != nil {
log.Fatalf("Cannot remove process: %s\n", err) log.Fatalf("Cannot remove process: %s\n", err)
} }
return return
} }