Skip to content

Commit

Permalink
Add missing CheckReturnValue
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Oct 5, 2024
1 parent 7617b66 commit 591fb53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/dv8tion/jda/api/utils/ImageProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public CompletableFuture<Path> downloadToPath(@Nonnull Path path, int size)
* @return {@link CompletableFuture} which holds an {@link Icon}.
*/
@Nonnull
@CheckReturnValue
public CompletableFuture<Icon> downloadAsIcon()
{
return downloadAsIcon(getUrl());
Expand All @@ -221,6 +222,7 @@ public CompletableFuture<Icon> downloadAsIcon()
* @return {@link CompletableFuture} which holds an {@link Icon}.
*/
@Nonnull
@CheckReturnValue
public CompletableFuture<Icon> downloadAsIcon(int size)
{
return downloadAsIcon(getUrl(size));
Expand Down

0 comments on commit 591fb53

Please sign in to comment.