aboutsummaryrefslogtreecommitdiffstats
path: root/bug/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/interface.go')
-rw-r--r--bug/interface.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/bug/interface.go b/bug/interface.go
index 796ee569..5c8f2729 100644
--- a/bug/interface.go
+++ b/bug/interface.go
@@ -46,11 +46,11 @@ type Interface interface {
}
func bugFromInterface(bug Interface) *Bug {
- switch bug.(type) {
+ switch bug := bug.(type) {
case *Bug:
- return bug.(*Bug)
+ return bug
case *WithSnapshot:
- return bug.(*WithSnapshot).Bug
+ return bug.Bug
default:
panic("missing type case")
}