From 6bddd6811c8d89556fa02925e4a4d1496498a00f Mon Sep 17 00:00:00 2001 From: Nathan Youngman Date: Sat, 28 Jun 2014 18:38:41 -0600 Subject: [PATCH] fix for String() method on Event thanks Alex Brainman https://codereview.appspot.com/105370044/ --- fsnotify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsnotify.go b/fsnotify.go index cd54051..b097521 100644 --- a/fsnotify.go +++ b/fsnotify.go @@ -27,8 +27,8 @@ const ( // String formats the event e in the form // "filename: REMOVE|WRITE|..." -func (e *Event) String() string { - var events string = "" +func (e Event) String() string { + events := "" if e.Op&Create == Create { events += "|" + "CREATE" -- 2.50.1