From 3f113aea42155011568a1395d56d3e358d8b8100 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 13 Aug 2013 20:42:51 -0400 Subject: [PATCH] Make event's methods pointer receivers --- events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events.go b/events.go index c36f88a..f1318a3 100644 --- a/events.go +++ b/events.go @@ -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 }