From f1df228d665fac403bedb34d353e71b6dcc9dced Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 4 Jul 2022 13:30:51 +0200 Subject: [PATCH] go fmt --- watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher.go b/watcher.go index cd517ff..cad08bb 100644 --- a/watcher.go +++ b/watcher.go @@ -46,7 +46,7 @@ func readEvents(inotifyFd int, events chan string) { continue } var offset uint32 - for offset + syscall.SizeofInotifyEvent <= uint32(n) { + for offset+syscall.SizeofInotifyEvent <= uint32(n) { // Point "raw" to the event in the buffer raw := (*syscall.InotifyEvent)(unsafe.Pointer(&buf[offset]))