diff options
Diffstat (limited to 'resource/transform.go')
-rw-r--r-- | resource/transform.go | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/resource/transform.go b/resource/transform.go index 93ace2ba0..5ba5ec821 100644 --- a/resource/transform.go +++ b/resource/transform.go @@ -188,25 +188,11 @@ type transformedResource struct { Resource } -type readSeeker struct { - io.Reader - io.Seeker - io.Closer -} - -func (r *readSeeker) Close() error { - return nil -} - -func (r *readSeeker) Seek(offset int64, whence int) (int64, error) { - panic("Seek is not supported by this io.Reader") -} - func (r *transformedResource) ReadSeekCloser() (ReadSeekCloser, error) { if err := r.initContent(); err != nil { return nil, err } - return &readSeeker{Reader: strings.NewReader(r.content)}, nil + return NewReadSeekerNoOpCloserFromString(r.content), nil } func (r *transformedResource) transferTransformedValues(another *transformedResource) { |