Skip to content

Commit

Permalink
regen snmptester
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Peterson committed Dec 14, 2015
1 parent ed8ea3a commit 5000c82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/snmpTester/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type _escStaticFS struct{}

var _escStatic _escStaticFS

type _escDir struct {
type _escDirectory struct {
fs http.FileSystem
name string
}
Expand Down Expand Up @@ -78,7 +78,7 @@ func (fs _escStaticFS) Open(name string) (http.File, error) {
return f.File()
}

func (dir _escDir) Open(name string) (http.File, error) {
func (dir _escDirectory) Open(name string) (http.File, error) {
return dir.fs.Open(dir.name + name)
}

Expand Down Expand Up @@ -142,9 +142,9 @@ func FS(useLocal bool) http.FileSystem {
// If useLocal is true, the filesystem's contents are instead used.
func Dir(useLocal bool, name string) http.FileSystem {
if useLocal {
return _escDir{fs: _escLocal, name: name}
return _escDirectory{fs: _escLocal, name: name}
}
return _escDir{fs: _escStatic, name: name}
return _escDirectory{fs: _escStatic, name: name}
}

// FSByte returns the named file from the embedded assets. If useLocal is
Expand Down

0 comments on commit 5000c82

Please sign in to comment.