Compare commits

..

No commits in common. "2.0.2" and "2.0.1" have entirely different histories.
2.0.2 ... 2.0.1

2 changed files with 5 additions and 6 deletions

4
go.mod
View file

@ -1,3 +1,3 @@
module remotebranch.eu/ChaoticByte/wid-notifier
module github.com/ChaoticByte/wid-notifier
go 1.26.2
go 1.24

View file

@ -34,11 +34,10 @@ func main() {
os.Exit(1)
}
for _, arg := range args {
switch arg {
case "-h", "--help":
if arg == "-h" || arg == "--help" {
showHelp()
os.Exit(0)
case "--version":
} else if arg == "--version" {
showVersion()
os.Exit(0)
}
@ -141,7 +140,7 @@ func main() {
for r, notices := range noticesToBeSent {
// sort by publish date
slices.SortFunc(notices, func(a *WidNotice, b *WidNotice) int {
if a.Published.Equal(b.Published) {
if a.Published == b.Published {
return 0
} else if a.Published.After(b.Published) {
return 1