Skip to content

Commit

Permalink
remove throws IllegalStateException from method signature & update er…
Browse files Browse the repository at this point in the history
…ror message
  • Loading branch information
topi314 committed Oct 12, 2023
1 parent 12561f7 commit 6ed2d47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public void shutdown() {
}

@Nullable
public AudioSearchResult loadSearch(String query, Set<AudioSearchResult.Type> types) throws IllegalStateException {
public AudioSearchResult loadSearch(String query, Set<AudioSearchResult.Type> types) {
if (this.searchManagers.isEmpty()){
throw new IllegalStateException("No search source registered");
throw new IllegalStateException("No search managers registered");
}
for (var sourceManager : this.searchManagers) {
var searchResults = sourceManager.loadSearch(query, types);
Expand Down

0 comments on commit 6ed2d47

Please sign in to comment.