mirror of
https://github.com/JaCoB1123/dupe-finder.git
synced 2025-07-03 17:18:55 +02:00
Remove unneeded check in map
This commit is contained in:
@ -92,11 +92,7 @@ func (fm *FilesMap) HashedWorker(done chan bool) {
|
||||
}
|
||||
|
||||
fm.lock.Lock()
|
||||
if _, ok := fm.FilesByHash[file.hash]; ok {
|
||||
fm.FilesByHash[file.hash] = append(fm.FilesByHash[file.hash], file.path)
|
||||
} else {
|
||||
fm.FilesByHash[file.hash] = []string{file.path}
|
||||
}
|
||||
fm.lock.Unlock()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user