Skip to content

Commit

Permalink
Merge branch 'feature_fix3'
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Jul 28, 2020
2 parents 564bf41 + 6ef2751 commit c7f5b2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,18 @@ func (n *Notify) wait() {
for {
select {
case event, ok := <-n.watcher.Events:
normalizedName := filepath.Clean(event.Name)

if !ok {
continue
}
if !n.shouldExecute(event.Name, event.Op) {
if !n.shouldExecute(normalizedName, event.Op) {
continue
}
now := time.Now()
n.times[event.Name] = now
n.times[normalizedName] = now
e := Event{
Name: event.Name,
Name: normalizedName,
Time: now,
}
n.Events <- e
Expand Down

0 comments on commit c7f5b2a

Please sign in to comment.