Skip to content

Commit

Permalink
RTTI: Remove redundant check when converting UUID to string
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadelessFox committed Jun 19, 2023
1 parent 34dfbe4 commit acf47d3
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ private RTTIUtils() {

@NotNull
public static String uuidToString(@NotNull RTTIObject o) {
if (!o.type().isInstanceOf("GGUUID")) {
throw new IllegalArgumentException("Object is not an instance of GGUUID");
}

return "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x".formatted(
o.i8("Data3"), o.i8("Data2"), o.i8("Data1"), o.i8("Data0"),
o.i8("Data5"), o.i8("Data4"),
Expand Down

0 comments on commit acf47d3

Please sign in to comment.