Skip to content

Commit

Permalink
reversed previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
seailz committed Nov 2, 2023
1 parent 74768bd commit 7d97c76
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main/java/com/seailz/discordjar/model/guild/Guild.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,6 @@ public static Guild decompile(JSONObject obj, DiscordJar discordJar) {

@NotNull
public static Guild decompile(JSONObject obj, DiscordJar discordJar, boolean bypassCache) {
// If the cache happens to contain the current guild, we'll use that instead of creating a new one.
// Helpful for slight memory optimization & performance.
Guild cachedGuild = discordJar.getGuildCache().returnFromCache(obj.getString("id"));
if (cachedGuild != null && !bypassCache) {
return cachedGuild;
}

long nano = System.nanoTime();
String id;
String name;
Expand Down

0 comments on commit 7d97c76

Please sign in to comment.