Skip to content

Commit

Permalink
Fix a few grammatical errors (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Jan 9, 2021
1 parent ea245b2 commit f1b4503
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions source/app/metrics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
const template = q.template || conf.settings.templates.default
const repositories = Math.max(0, Number(q.repositories)) || conf.settings.repositories || 100
const pending = []
const s = (value, end = "") => value > 1 ? {y:"ies", "":"s"}[end] : end
const s = (value, end = "") => value !== 1 ? {y:"ies", "":"s"}[end] : end
if ((!(template in Templates))||(!(template in conf.templates))||((conf.settings.templates.enabled.length)&&(!conf.settings.templates.enabled.includes(template))))
throw new Error("unsupported template")
const {image, style, fonts} = conf.templates[template]
Expand Down Expand Up @@ -274,4 +274,4 @@
}[key]??{})]
)),
})
}
}
8 changes: 4 additions & 4 deletions source/templates/classic/image.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f1b4503

Please sign in to comment.