Add "open" qualifier when listing open issues/PRs (#1457)

This commit is contained in:
Shubhankar Kanchan Gupta 2020-07-31 21:52:08 +05:30 committed by GitHub
parent 88eaa28aef
commit bb6851c88b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 8 deletions

View file

@ -48,9 +48,8 @@ func RenderMarkdown(text string) (string, error) {
func Pluralize(num int, thing string) string {
if num == 1 {
return fmt.Sprintf("%d %s", num, thing)
} else {
return fmt.Sprintf("%d %ss", num, thing)
}
return fmt.Sprintf("%d %ss", num, thing)
}
func fmtDuration(amount int, unit string) string {