diff options
author | Jakob Unterwurzacher | 2015-11-27 22:20:01 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-27 22:20:01 +0100 |
commit | a04a92cdab11df43f072db685b8ade6c973f8995 (patch) | |
tree | 457b018abf5fa6be480b58ea95375a11fbc449af /cryptfs | |
parent | 6acd772cf908908e3b0d817a78e64f98faaa8b7b (diff) |
Run go fmt
Diffstat (limited to 'cryptfs')
-rw-r--r-- | cryptfs/names_diriv.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cryptfs/names_diriv.go b/cryptfs/names_diriv.go index 46e2bfd..ab039f0 100644 --- a/cryptfs/names_diriv.go +++ b/cryptfs/names_diriv.go @@ -9,16 +9,16 @@ import ( // readDirIV - read the "gocryptfs.diriv" file from "dir" (absolute path) func (be *CryptFS) readDirIV(dir string) (iv []byte, err error) { - ivfile := filepath.Join(dir, DIRIV_FILENAME) - iv, err = ioutil.ReadFile(ivfile) - if err != nil { - Warn.Printf("readDirIV: %v\n", err) - return nil, err - } - if len(iv) != DIRIV_LEN { - return nil, fmt.Errorf("readDirIV: Invalid length %d\n", len(iv)) - } - return iv, nil + ivfile := filepath.Join(dir, DIRIV_FILENAME) + iv, err = ioutil.ReadFile(ivfile) + if err != nil { + Warn.Printf("readDirIV: %v\n", err) + return nil, err + } + if len(iv) != DIRIV_LEN { + return nil, fmt.Errorf("readDirIV: Invalid length %d\n", len(iv)) + } + return iv, nil } // WriteDirIV - create diriv file inside "dir" (absolute path) |