diff options
author | Christian Muehlhaeuser <[email protected]> | 2019-08-02 15:32:23 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-10 20:12:38 +0200 |
commit | 6027ee11082d0b9d72de1d4d1980a702be294ad2 (patch) | |
tree | e4fa07986f8a0da40d470d11b2f9fd1a1a46b132 /tpl/images | |
parent | c577a9ed2347559783c44232e1f08414008c5203 (diff) | |
download | hugo-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.go | 2 |
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 } |