Skip to content

Commit 599b414

Browse files
Shredder121MinnDevelopment
authored andcommitted
Don't call toString() eagerly on arguments to format()
1 parent d86392a commit 599b414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/dv8tion/jda/core/utils/PermissionUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,6 @@ private static long apply(long permission, long allow, long deny)
643643
private static void checkGuild(Guild o1, Guild o2, String name)
644644
{
645645
Checks.check(o1.equals(o2),
646-
"Specified %s is not in the same guild! (%s / %s)", name, o1.toString(), o2.toString());
646+
"Specified %s is not in the same guild! (%s / %s)", name, o1, o2);
647647
}
648648
}

0 commit comments

Comments
 (0)