projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don’t check for the presence of the album image in the album.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
AlbumImpl.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/AlbumImpl.java
b/src/main/java/net/pterodactylus/sone/data/AlbumImpl.java
index
93cf2d9
..
5422812
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/AlbumImpl.java
+++ b/
src/main/java/net/pterodactylus/sone/data/AlbumImpl.java
@@
-311,7
+311,7
@@
public class AlbumImpl implements Album {
@Override
public Album update() throws IllegalStateException {
@Override
public Album update() throws IllegalStateException {
- checkState(!albumImage.isPresent()
|| images.containsKey(albumImage.get())
, "album image must belong to this album");
+ checkState(!albumImage.isPresent(), "album image must belong to this album");
if (title.isPresent()) {
AlbumImpl.this.title = title.get();
}
if (title.isPresent()) {
AlbumImpl.this.title = title.get();
}