Skip to content

Commit

Permalink
format code better
Browse files Browse the repository at this point in the history
  • Loading branch information
shedaniel committed Aug 12, 2024
1 parent 3b449e6 commit 0332a84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/fabricmc/loom/util/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ public int compareTo(@NotNull Version other) {
return this.minor - other.minor;
} else if (this.micro != other.micro) {
return this.micro - other.micro;
} else if (this.patch != other.patch) {
return this.patch - other.patch;
} else {
return this.patch != other.patch ? this.patch - other.patch
: Ordering.natural().nullsLast()
return Ordering.natural().nullsLast()
.compare(this.qualifier, other.qualifier);
}
}
Expand Down

0 comments on commit 0332a84

Please sign in to comment.