From 6027ee11082d0b9d72de1d4d1980a702be294ad2 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 2 Aug 2019 15:32:23 +0000 Subject: Avoid unnecessary conversions No need to convert these types. --- tpl/images/images_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/images') diff --git a/tpl/images/images_test.go b/tpl/images/images_test.go index c9b78ea9a..f2b4a426a 100644 --- a/tpl/images/images_test.go +++ b/tpl/images/images_test.go @@ -93,7 +93,7 @@ func TestNSConfig(t *testing.T) { // check for expected errors early to avoid writing files if b, ok := test.expect.(bool); ok && !b { - _, err := ns.Config(interface{}(test.path)) + _, err := ns.Config(test.path) require.Error(t, err, errMsg) continue } -- cgit v1.2.3