Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3d1cc2c

Browse filesBrowse files
committed
Merge pull request revel#734 from libgo/fsnotify_attrib
watcher: treat fsnotify Op as a bitmask
2 parents d07d810 + 065c84c commit 3d1cc2c
Copy full SHA for 3d1cc2c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎watcher.go

Copy file name to clipboardExpand all lines: watcher.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (w *Watcher) rebuildRequired(ev fsnotify.Event, listener Listener) bool {
214214
}
215215

216216
if dl, ok := listener.(DiscerningListener); ok {
217-
if !dl.WatchFile(ev.Name) || ev.Op == fsnotify.Chmod {
217+
if !dl.WatchFile(ev.Name) || ev.Op&fsnotify.Chmod == fsnotify.Chmod {
218218
return false
219219
}
220220
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.