Commit a9294a4e authored by Szabolcs Gyurko's avatar Szabolcs Gyurko
Browse files

Changed catch block to use an unamed variable

parent f36ae6cd
......@@ -47,7 +47,7 @@
else
value.formatted("%.2f") + " " + unit
} catch {
case e: Exception ⇒ "0"
case _: Exception ⇒ "0"
}
}
......@@ -60,7 +60,7 @@
val secs = seconds - (days * 86400) - (hours * 3600) - (minutes * 60)
s"$days d $hours h $minutes m $secs s"
} catch {
case e: Exception "0 d 0 h 0 m 0 s"
case _: Exception "0 d 0 h 0 m 0 s"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment