Return a nullable Album instead of an Optional
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 63c82ed..af69f98 100644 (file)
@@ -543,7 +543,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
         */
        @Nullable
        public Album getAlbum(@Nonnull String albumId) {
-               return database.getAlbum(albumId).orNull();
+               return database.getAlbum(albumId);
        }
 
        public ImageBuilder imageBuilder() {