Run gofmt

This commit is contained in:
Jakob Unterwurzacher 2015-10-11 18:51:56 +02:00
parent b00fc379c4
commit 242fcd0736
3 changed files with 16 additions and 16 deletions

View File

@ -1,8 +1,8 @@
package main
import (
"io/ioutil"
"fmt"
"io/ioutil"
"os"
)
@ -26,7 +26,7 @@ func checkDir(dir string) error {
if err != nil {
return err
}
if ! fi.IsDir() {
if !fi.IsDir() {
return fmt.Errorf("%s is not a directory")
}
return nil

View File

@ -1,11 +1,11 @@
package main
import (
"syscall"
"os/exec"
"os"
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
)
// The child sends us USR1 if the mount was successful

View File

@ -81,7 +81,7 @@ func main() {
var cpuprofile = flag.String("cpuprofile", "", "Write cpu profile to specified file")
flag.Parse()
if ! foreground {
if !foreground {
daemonize() // does not return
}
if *cpuprofile != "" {