1
0
Fork 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
1 changed files with 5 additions and 5 deletions

10
main.go
View File

@ -148,7 +148,7 @@ func RemoveProcessFromList(process string, conf *Configuration, configPath strin
for k, v := range conf.Processes {
if v == process {
copy(conf.Processes[:k], conf.Processes[k+1:])
if err := StoreConfiguration(configPath, conf); err != nil {
return err
}
@ -175,8 +175,8 @@ func version() {
fmt.Println("httpprocwatchd ver. 1.1")
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("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("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.")
}
var oConfigPath string
@ -227,7 +227,7 @@ func main() {
if oAddProcess != "" {
err := AddProcessToList(oAddProcess, conf, oConfigPath)
if err != nil {
log.Fatalf("Cannot add process: %s\n", err)
log.Fatalf("Cannot add process: %s\n", err)
}
return
}
@ -235,7 +235,7 @@ func main() {
if oRemoveProcess != "" {
err := RemoveProcessFromList(oRemoveProcess, conf, oConfigPath)
if err != nil {
log.Fatalf("Cannot remove process: %s\n", err)
log.Fatalf("Cannot remove process: %s\n", err)
}
return
}