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:
parent
4ce32adfe8
commit
5ce745d104
2 changed files with 65 additions and 60 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue