mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
gofmt
This commit is contained in:
parent
7c7b1e6c2d
commit
fc6a029311
@ -264,10 +264,10 @@ func main() {
|
|||||||
if err == nil && !info.IsDir() {
|
if err == nil && !info.IsDir() {
|
||||||
l.Fatalln(dir, "is not a directory")
|
l.Fatalln(dir, "is not a directory")
|
||||||
}
|
}
|
||||||
if err!=nil&&os.IsNotExist(err){
|
if err != nil && os.IsNotExist(err) {
|
||||||
err=os.MkdirAll(dir, 0700)
|
err = os.MkdirAll(dir, 0700)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Fatalln("generate:",err)
|
l.Fatalln("generate:", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user