mirror of
https://github.com/JaCoB1123/dupe-finder.git
synced 2025-05-18 06:01:56 +02:00
Remove unneeded check in map
This commit is contained in:
parent
425a87071d
commit
4ea8dfd7ee
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user