diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-09-24 13:24:04 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-09-24 13:24:04 +0300 |
commit | e5d6997a68f323bc345928d14ac902ac506b4a67 (patch) | |
tree | a120dbcae3cca7e4d256bc17d0b93b17615afc9e /internal | |
parent | 83376dd5016d918e579342d935c18ad2002c1dca (diff) |
Remove refactoring support comments and improve app.go
Diffstat (limited to 'internal')
-rw-r--r-- | internal/domain/domain.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go index 4c5fce17..f342bd72 100644 --- a/internal/domain/domain.go +++ b/internal/domain/domain.go @@ -118,7 +118,6 @@ func (d *Domain) IsHTTPSOnly(r *http.Request) bool { } // Check custom domain config (e.g. http://example.com) - // if d.!= nil { if d.isCustomDomain() { return d.HTTPSOnly } @@ -389,7 +388,6 @@ func (d *Domain) tryFile(w http.ResponseWriter, r *http.Request, projectName str } func (d *Domain) serveFileFromGroup(w http.ResponseWriter, r *http.Request) bool { - // project, projectName, subPath := d.getProjectWithSubpath(r) projectName, subPath, err := d.GroupConfig.ProjectWithSubpath(r) if err != nil { httperrors.Serve404(w) @@ -404,7 +402,6 @@ func (d *Domain) serveFileFromGroup(w http.ResponseWriter, r *http.Request) bool } func (d *Domain) serveNotFoundFromGroup(w http.ResponseWriter, r *http.Request) { - // project, projectName, _ := d.getProjectWithSubpath(r) projectName, _, err := d.GroupConfig.ProjectWithSubpath(r) if err != nil { |