Make event's methods pointer receivers

This commit is contained in:
Aaron Lindsay 2013-08-13 20:42:51 -04:00
parent e5fabc27e3
commit 3f113aea42

View File

@ -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
}