Skip to content

Commit

Permalink
png.go: Add MediaContext conformance assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
dsoprea committed Jun 2, 2020
1 parent d905bec commit fc5e277
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions png.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/dsoprea/go-exif/v2"
"github.com/dsoprea/go-logging"
"github.com/dsoprea/go-utility/image"
)

var (
Expand Down Expand Up @@ -406,3 +407,8 @@ func (ps *PngSplitter) Split(data []byte, atEOF bool) (advance int, token []byte

return advance, nil, nil
}

var (
// Enforce interface conformance.
_ riimage.MediaContext = new(ChunkSlice)
)

0 comments on commit fc5e277

Please sign in to comment.