aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/faucet/faucet.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 2a9a74593..f672433ee 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -108,10 +108,11 @@ func main() {
if period%60 == 0 {
period /= 60
periods[i] = fmt.Sprintf("%d hours", period)
- }
- if period%24 == 0 {
- period /= 24
- periods[i] = fmt.Sprintf("%d days", period)
+
+ if period%24 == 0 {
+ period /= 24
+ periods[i] = fmt.Sprintf("%d days", period)
+ }
}
if period == 1 {
periods[i] = strings.TrimSuffix(periods[i], "s")