Skip to content

Commit

Permalink
Merge pull request #254 from discord-jar/main
Browse files Browse the repository at this point in the history
reversed previous change
  • Loading branch information
seailz authored Nov 2, 2023
2 parents 71da20c + 7d97c76 commit 0dfc7e0
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 @@ -399,13 +399,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 0dfc7e0

Please sign in to comment.