From 97bc5ccd229b7b438262a84e3c42783b4d4a82af Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 8 Feb 2020 16:17:15 +0100 Subject: various cleanups suggested by golang-ci --- bug/interface.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bug/interface.go') 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") } -- cgit