Skip to content

Commit

Permalink
Add compile time guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Aug 15, 2023
1 parent 91f28f2 commit 52ab907
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/handlers/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ var (
maxTimeout = time.Duration(30) * time.Second
)

// Ensure the Archive satisfies the interfaces at compile time.
var _ SpecializedHandler = (*Archive)(nil)

// Archive is a handler for extracting and decompressing archives.
type Archive struct {
size int
Expand Down

0 comments on commit 52ab907

Please sign in to comment.