resource: Resources.ByType should return Resources
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 7 Jan 2018 09:53:45 +0000 (10:53 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 7 Jan 2018 09:53:45 +0000 (10:53 +0100)
commit97c1866e322284dec46db6f3d235807507f5b69f
tree889fcb9f1aea985ffd6e75b6efec1c0ceebfb8a8
parent8969331f5be352939883074034adac6b7086ddc8
resource: Resources.ByType should return Resources

Currently it returns []Resource.

This way the invocations can be nested.

Fixes #4234
resource/resource.go