Skip to content

Commit 775947c

Browse files
committed
Change 'due in DUE minutes' to just due
1 parent c675aa8 commit 775947c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.goreleaser.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ archive:
1212
format: 'tar.gz'
1313
files: []
1414
replacements:
15-
darwin: Darwin
16-
linux: Linux
17-
windows: Windows
1815
386: i386
1916
amd64: x86_64
2017
checksum:

cmd/forecast.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ func printOutput(format string, stop *luas.Stop, stopInfo *luas.StopInfo) {
4545
for _, direction := range stopInfo.Directions {
4646
output.Infof("Direction: %s", direction.Name)
4747
for _, tram := range direction.Trams {
48-
output.Infof("Destination: %s, due in %s minutes", tram.Destination, tram.DueMins)
48+
if tram.DueMins == "DUE" {
49+
output.Infof("Destination: %s, due to arrive", tram.Destination, tram.DueMins)
50+
} else {
51+
output.Infof("Destination: %s, due in %s minutes", tram.Destination, tram.DueMins)
52+
}
4953
}
5054
output.Infof("")
5155
}

0 commit comments

Comments
 (0)