Skip to content

Commit

Permalink
use the built-in const (avelino#5267)
Browse files Browse the repository at this point in the history
  • Loading branch information
redistay authored Apr 2, 2024
1 parent e3c9099 commit f308d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stale_repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var awesomeGoGETISSUES = "http://api.github.com/repos/avelino/awesome-go/issues"
// time.Hour * ... or change type of variable
var numberOfYears time.Duration = 1
var timeNow = time.Now()
var issueTitle = fmt.Sprintf("Investigate repositories with more than 1 year without update - %s", timeNow.Format("2006-01-02"))
var issueTitle = fmt.Sprintf("Investigate repositories with more than 1 year without update - %s", timeNow.Format(time.DateOnly))

const deadLinkMessage = " this repository might no longer exist! (status code >= 400 returned)"
const movedPermanently = " status code 301 received"
Expand Down

0 comments on commit f308d55

Please sign in to comment.