aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/player/TimeCheck.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-07-04 21:56:15 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-07-04 21:56:15 -0600
commit27c90aaed911ba382542cd761c8b01e24b042000 (patch)
treeddfaac129bce057815ce0834c1613d33d65ac72b /src/net/brysonsteck/Resurrection/player/TimeCheck.java
parent6c39053bdf64ac130daee2bf3b44ce1c025b4dbd (diff)
downloadresurrection-27c90aaed911ba382542cd761c8b01e24b042000.tar
resurrection-27c90aaed911ba382542cd761c8b01e24b042000.tar.gz
resurrection-27c90aaed911ba382542cd761c8b01e24b042000.tar.bz2
code cleanup
Diffstat (limited to 'src/net/brysonsteck/Resurrection/player/TimeCheck.java')
-rw-r--r--src/net/brysonsteck/Resurrection/player/TimeCheck.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/brysonsteck/Resurrection/player/TimeCheck.java b/src/net/brysonsteck/Resurrection/player/TimeCheck.java
index dc989ea..a12bb16 100644
--- a/src/net/brysonsteck/Resurrection/player/TimeCheck.java
+++ b/src/net/brysonsteck/Resurrection/player/TimeCheck.java
@@ -10,13 +10,10 @@ public class TimeCheck {
}
public String formatTime() {
- long hours = TimeUnit.MILLISECONDS.toHours(millis);
-
- String formattedTime = String.format("%d hrs, %d min, %d sec",
+ return String.format("%d hrs, %d min, %d sec",
TimeUnit.MILLISECONDS.toHours(millis),
TimeUnit.MILLISECONDS.toMinutes(millis) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),
TimeUnit.MILLISECONDS.toSeconds(millis) -
TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)));
- return formattedTime;
}
}