Keep gofmt happy

This commit is contained in:
Harsimran Singh Maan 2016-11-22 22:54:07 -08:00
parent 06b7e5f506
commit a1903a1b07
No known key found for this signature in database
GPG Key ID: B6C55D1AAAADD656
2 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ func NewTempOsBaseFs(t *testing.T) Fs {
func CleanupTempDirs(t *testing.T) { func CleanupTempDirs(t *testing.T) {
osfs := NewOsFs() osfs := NewOsFs()
type ev struct{ type ev struct {
path string path string
e error e error
} }
@ -33,7 +33,7 @@ func CleanupTempDirs(t *testing.T) {
for _, x := range tempDirs { for _, x := range tempDirs {
err := osfs.RemoveAll(x) err := osfs.RemoveAll(x)
if err != nil { if err != nil {
errs = append(errs, ev{path:x,e: err}) errs = append(errs, ev{path: x, e: err})
} }
} }

View File

@ -14,8 +14,8 @@
package sftpfs package sftpfs
import ( import (
"os"
"github.com/pkg/sftp" "github.com/pkg/sftp"
"os"
) )
type File struct { type File struct {
@ -64,17 +64,17 @@ func (f *File) Read(b []byte) (n int, err error) {
// TODO // TODO
func (f *File) ReadAt(b []byte, off int64) (n int, err error) { func (f *File) ReadAt(b []byte, off int64) (n int, err error) {
return 0,nil return 0, nil
} }
// TODO // TODO
func (f *File) Readdir(count int) (res []os.FileInfo, err error) { func (f *File) Readdir(count int) (res []os.FileInfo, err error) {
return nil,nil return nil, nil
} }
// TODO // TODO
func (f *File) Readdirnames(n int) (names []string, err error) { func (f *File) Readdirnames(n int) (names []string, err error) {
return nil,nil return nil, nil
} }
func (f *File) Seek(offset int64, whence int) (int64, error) { func (f *File) Seek(offset int64, whence int) (int64, error) {
@ -87,7 +87,7 @@ func (f *File) Write(b []byte) (n int, err error) {
// TODO // TODO
func (f *File) WriteAt(b []byte, off int64) (n int, err error) { func (f *File) WriteAt(b []byte, off int64) (n int, err error) {
return 0,nil return 0, nil
} }
func (f *File) WriteString(s string) (ret int, err error) { func (f *File) WriteString(s string) (ret int, err error) {