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

Commit

Permalink
Fix out of bounds error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zillode committed Apr 17, 2015
1 parent 02423a1 commit 1f42e27
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 @@ -586,7 +586,7 @@ func accumulateChanges(interval time.Duration,
var err error
var paths []string
if len(inProgress) < maxFiles {
paths = make([]string, 0)
paths = make([]string, 0, len(inProgress))
i := 0
for path, progress := range inProgress {
if path == "" {
Expand Down

0 comments on commit 1f42e27

Please sign in to comment.