We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed0ede3 commit 9b4c5b7Copy full SHA for 9b4c5b7
src/main/java/net/modgarden/backend/data/profile/User.java
@@ -100,18 +100,16 @@ public static User query(String path,
100
if (user == null)
101
user = queryFromModrinthId(path);
102
return user;
103
- }
104
-
105
- if ("discord".equalsIgnoreCase(service)) {
+ } else if ("discord".equalsIgnoreCase(service)) {
106
user = queryFromDiscordUsername(path.toLowerCase(Locale.ROOT));
107
108
user = queryFromDiscordId(path);
109
110
111
112
- user = queryFromUsername(path);
113
- if (user == null)
114
- user = queryFromId(path);
+ } else {
+ user = queryFromUsername(path);
+ if (user == null)
+ user = queryFromId(path);
+ }
115
116
}
117
0 commit comments