projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
✅ Add tests for Album.allImages
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
data
/
Albums.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/data/Albums.kt
b/src/main/kotlin/net/pterodactylus/sone/data/Albums.kt
index
da71d62
..
a38e9dd
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/data/Albums.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/data/Albums.kt
@@
-20,7
+20,7
@@
package net.pterodactylus.sone.data
/** Returns all images contained in this album and all its albums. */
val Album.allImages: Collection<Image>
get() =
/** Returns all images contained in this album and all its albums. */
val Album.allImages: Collection<Image>
get() =
- images + albums.flatMap
{ it.allImages }
+ images + albums.flatMap
(Album::allImages)
/**
* Returns this album and all albums contained in this album (recursively).
/**
* Returns this album and all albums contained in this album (recursively).