Don't use pointer receiver

This commit is contained in:
Stephen McQuay 2018-03-03 22:32:12 -08:00
parent 63c5def07f
commit 570c0d885f
Signed by: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -15,7 +15,7 @@ type Meta struct {
} }
// Valid validates the contents of a Meta for requires fields. // Valid validates the contents of a Meta for requires fields.
func (m *Meta) Valid() (bool, error) { func (m Meta) Valid() (bool, error) {
if m.Name == "" { if m.Name == "" {
return false, errors.New("name cannot be empty") return false, errors.New("name cannot be empty")
} }