From: Nathan Youngman Date: Sun, 29 Jun 2014 00:38:41 +0000 (-0600) Subject: fix for String() method on Event X-Git-Tag: v1.7.2~303 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=6bddd6811c8d89556fa02925e4a4d1496498a00f;p=fsnotify.git fix for String() method on Event thanks Alex Brainman https://codereview.appspot.com/105370044/ --- 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"