Merge pull request #111 from harsimranmaan/gofmt

Keep gofmt happy
This commit is contained in:
Martin Bertschler 2016-12-08 19:17:24 +01:00 committed by GitHub
commit 22793e5c8b
2 changed files with 8 additions and 8 deletions

View File

@ -23,9 +23,9 @@ func NewTempOsBaseFs(t *testing.T) Fs {
func CleanupTempDirs(t *testing.T) {
osfs := NewOsFs()
type ev struct{
type ev struct {
path string
e error
e error
}
errs := []ev{}
@ -33,7 +33,7 @@ func CleanupTempDirs(t *testing.T) {
for _, x := range tempDirs {
err := osfs.RemoveAll(x)
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
import (
"os"
"github.com/pkg/sftp"
"os"
)
type File struct {
@ -64,17 +64,17 @@ func (f *File) Read(b []byte) (n int, err error) {
// TODO
func (f *File) ReadAt(b []byte, off int64) (n int, err error) {
return 0,nil
return 0, nil
}
// TODO
func (f *File) Readdir(count int) (res []os.FileInfo, err error) {
return nil,nil
return nil, nil
}
// TODO
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) {
@ -87,7 +87,7 @@ func (f *File) Write(b []byte) (n int, err error) {
// TODO
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) {