Avoid trailing space.
This commit is contained in:
parent
9706a9af8c
commit
6b6e48650d
1 changed files with 2 additions and 2 deletions
|
|
@ -107,8 +107,8 @@ public class Convertions {
|
||||||
for (var mapping : unitMappings) {
|
for (var mapping : unitMappings) {
|
||||||
if (size.compareTo(mapping.getValue()) >= 0
|
if (size.compareTo(mapping.getValue()) >= 0
|
||||||
&& size.mod(mapping.getValue()).equals(BigInteger.ZERO)) {
|
&& size.mod(mapping.getValue()).equals(BigInteger.ZERO)) {
|
||||||
return size.divide(mapping.getValue()).toString()
|
return (size.divide(mapping.getValue()).toString()
|
||||||
+ " " + mapping.getKey();
|
+ " " + mapping.getKey()).trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return size.toString();
|
return size.toString();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue