Skip to content

Commit

Permalink
chore: Remove return type from withSameSize ext.function
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest committed Oct 15, 2023
1 parent 78b037c commit 0dcdefe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class CoroutinesFindDuplicatesExecution(

private fun List<Path>.withSameContent() = groupBy { it.contentHash() }.filter { (_, paths) -> paths.size > 1 }

private fun List<Path>.withSameSize(): Map<Long, List<Path>> = groupBy { it.fileSize() }.filter { (_, paths) -> paths.size > 1 }
private fun List<Path>.withSameSize() = groupBy { it.fileSize() }.filter { (_, paths) -> paths.size > 1 }
}

private fun Path.contentHash(type: String = "MD5"): String = readBytes().contentHash(type)
Expand Down

0 comments on commit 0dcdefe

Please sign in to comment.