Skip to content

Commit

Permalink
Remove VFS argument from ReadSource which isn't used
Browse files Browse the repository at this point in the history
  • Loading branch information
stuart-c authored and hairyhenderson committed Aug 5, 2017
1 parent f6126bf commit 9c284c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (d *Data) Datasource(alias string, args ...string) interface{} {
if !ok {
log.Fatalf("Undefined datasource '%s'", alias)
}
b, err := d.ReadSource(source.FS, source, args...)
b, err := d.ReadSource(source, args...)
if err != nil {
log.Fatalf("Couldn't read datasource '%s': %s", alias, err)
}
Expand Down Expand Up @@ -216,15 +216,15 @@ func (d *Data) include(alias string, args ...string) interface{} {
if !ok {
log.Fatalf("Undefined datasource '%s'", alias)
}
b, err := d.ReadSource(source.FS, source, args...)
b, err := d.ReadSource(source, args...)
if err != nil {
log.Fatalf("Couldn't read datasource '%s': %s", alias, err)
}
return string(b)
}

// ReadSource -
func (d *Data) ReadSource(fs vfs.Filesystem, source *Source, args ...string) ([]byte, error) {
func (d *Data) ReadSource(source *Source, args ...string) ([]byte, error) {
if d.cache == nil {
d.cache = make(map[string][]byte)
}
Expand Down

0 comments on commit 9c284c7

Please sign in to comment.