Formatting fixing.
This commit is contained in:
parent
4ed4b466b0
commit
e594c0024f
10
main.go
10
main.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user