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,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) {