aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/player/TimeCheck.java
diff options
context:
space:
mode:
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;
}
}