Make event's methods pointer receivers
This commit is contained in:
parent
e5fabc27e3
commit
3f113aea42
@ -37,10 +37,10 @@ type Event struct {
|
||||
InDB bool `json:"-"` //defaults to false. Omitted from json marshalling.
|
||||
}
|
||||
|
||||
func (e Event) IsUpdate() bool {
|
||||
func (e *Event) IsUpdate() bool {
|
||||
return e.Type&UPDATE == UPDATE
|
||||
}
|
||||
|
||||
func (e Event) IsDelete() bool {
|
||||
func (e *Event) IsDelete() bool {
|
||||
return e.Type&DELETE == DELETE
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user