Run gofmt
This commit is contained in:
parent
b00fc379c4
commit
242fcd0736
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ func checkDir(dir string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if ! fi.IsDir() {
|
if !fi.IsDir() {
|
||||||
return fmt.Errorf("%s is not a directory")
|
return fmt.Errorf("%s is not a directory")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
|
||||||
"os/exec"
|
|
||||||
"os"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
"os/exec"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The child sends us USR1 if the mount was successful
|
// The child sends us USR1 if the mount was successful
|
||||||
|
2
main.go
2
main.go
@ -81,7 +81,7 @@ func main() {
|
|||||||
var cpuprofile = flag.String("cpuprofile", "", "Write cpu profile to specified file")
|
var cpuprofile = flag.String("cpuprofile", "", "Write cpu profile to specified file")
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if ! foreground {
|
if !foreground {
|
||||||
daemonize() // does not return
|
daemonize() // does not return
|
||||||
}
|
}
|
||||||
if *cpuprofile != "" {
|
if *cpuprofile != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user