Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
aggregateChanges: Remove unnecessary two-value assignment
Browse files Browse the repository at this point in the history
We can be certain that key exists in trackedPaths.
  • Loading branch information
plouj committed Jan 31, 2016
1 parent 308ae31 commit 9c174e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ func aggregateChanges(folderPath string, dirVsFiles int, paths []string, pathSta
// Decide if we should inform about particular path based on dirVsFiles
for i := range keys {
trackedPath := keys[i]
trackedPathScore, _ := trackedPaths[trackedPath]
trackedPathScore := trackedPaths[trackedPath]
if strings.HasPrefix(trackedPath, previousPath+pathSeparator) {
// Already informed parent directory change
continue
Expand Down

0 comments on commit 9c174e6

Please sign in to comment.