aboutsummaryrefslogtreecommitdiffstats
path: root/auth/util.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-02-21 21:03:26 +0100
committerPetter Rasmussen2016-02-21 21:03:26 +0100
commit1973512dd8edca24df4124fb3dfac4a432a0d481 (patch)
treec61daefa5cf24eb2211ac816862697f9e0676d86 /auth/util.go
parent701c7f1991ae765a51b0b7404d1edbb2dc523055 (diff)
downloadgdrive-1973512dd8edca24df4124fb3dfac4a432a0d481.tar.bz2
go fmt
Diffstat (limited to 'auth/util.go')
-rw-r--r--auth/util.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/auth/util.go b/auth/util.go
index b053c1f..dfa4adf 100644
--- a/auth/util.go
+++ b/auth/util.go
@@ -1,22 +1,22 @@
package auth
import (
- "os"
- "path/filepath"
+ "os"
+ "path/filepath"
)
func mkdir(path string) error {
- dir := filepath.Dir(path)
- if fileExists(dir) {
- return nil
- }
- return os.Mkdir(dir, 0700)
+ dir := filepath.Dir(path)
+ if fileExists(dir) {
+ return nil
+ }
+ return os.Mkdir(dir, 0700)
}
func fileExists(path string) bool {
- _, err := os.Stat(path)
- if err == nil {
- return true
- }
- return false
+ _, err := os.Stat(path)
+ if err == nil {
+ return true
+ }
+ return false
}