mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Avoid unnecessary conversions
No need to convert these types.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
c577a9ed23
commit
6027ee1108
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user