Skip to content

Commit

Permalink
Don't use syscall, it's deprecated by go team and doesn't work on gae
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertJohan committed Jul 18, 2015
1 parent 5a666d9 commit c7060fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions virtual.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"path/filepath"
"sort"
"syscall"

"github.com/GeertJohan/go.rice/embedded"
)
Expand Down Expand Up @@ -248,6 +247,6 @@ func (vd *virtualDir) seek(offset int64, whence int) (int64, error) {
return 0, &os.PathError{
Op: "seek",
Path: vd.Filename,
Err: syscall.EISDIR,
Err: errors.New("is a directory"),
}
}

0 comments on commit c7060fb

Please sign in to comment.