Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Aug 19, 2017
1 parent 93268ae commit 42d3d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/com/pr0gramm/app/api/pr0gramm/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public String toString() {

@Value.Immutable
interface Names {
List<String> users();
List<String> getUsers();
}

@Value.Immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class UserSuggestionService(private val api: Api) {
if (!response.isSuccessful)
return emptyList()

return response.body()?.users().orEmpty()
return response.body()?.users.orEmpty()
} catch (error: Exception) {
logger.warn("Could not fetch username suggestions for prefix={}: {}", prefix, error)
return emptyList()
Expand Down

0 comments on commit 42d3d14

Please sign in to comment.