refactor(main): Split HTTP handlers into separate functions

There is a new handler coming up to fix #102 and I want to avoid
falling into the classic Go trap of creating thousand-line functions.
This commit is contained in:
Vincent Ambo 2020-10-27 13:30:12 +01:00 committed by Vincent Ambo
parent 4ce32adfe8
commit 5ce745d104
2 changed files with 65 additions and 60 deletions

View file

@ -140,7 +140,7 @@ func pkgSourceFromEnv() (PkgSource, error) {
}
if git := os.Getenv("NIXERY_PKGS_REPO"); git != "" {
log.WithField("repo", git).Info("using NIx package set from git repository")
log.WithField("repo", git).Info("using Nix package set from git repository")
return &GitSource{
repository: git,