aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/images
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <[email protected]>2019-08-02 15:32:23 +0000
committerBjørn Erik Pedersen <[email protected]>2019-08-10 20:12:38 +0200
commit6027ee11082d0b9d72de1d4d1980a702be294ad2 (patch)
treee4fa07986f8a0da40d470d11b2f9fd1a1a46b132 /tpl/images
parentc577a9ed2347559783c44232e1f08414008c5203 (diff)
downloadhugo-6027ee11082d0b9d72de1d4d1980a702be294ad2.tar.gz
hugo-6027ee11082d0b9d72de1d4d1980a702be294ad2.zip
Avoid unnecessary conversions
No need to convert these types.
Diffstat (limited to 'tpl/images')
-rw-r--r--tpl/images/images_test.go2
1 files changed, 1 insertions, 1 deletions
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
}