code formatting

This commit is contained in:
HojouFotytu 2021-03-04 01:35:11 +09:00
parent f273d71708
commit b08d4dac0c
1 changed files with 2 additions and 9 deletions

View File

@ -472,21 +472,14 @@ namespace Core.Helper
if (minutes > 0) if (minutes > 0)
{ {
if ( if (days == 0 || (days > 0 && hours == 0))
(days == 0) ||
(days > 0 && hours == 0)
)
{ {
result += " "; result += " ";
result += minutes.ToString() + "m"; result += minutes.ToString() + "m";
} }
} }
if ( if ((days == 0 && hours == 0) || (days > 0 && hours == 0 && minutes == 0) || (days == 0 && hours > 0 && minutes == 0))
(days == 0 && hours == 0) ||
(days > 0 && hours == 0 && minutes == 0) ||
(days == 0 && hours > 0 && minutes == 0)
)
{ {
result += " "; result += " ";
result += seconds.ToString() + "s"; result += seconds.ToString() + "s";