Don't use pointer receiver
This commit is contained in:
parent
63c5def07f
commit
570c0d885f
2
meta.go
2
meta.go
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user