mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
remove whitespace
This commit is contained in:
parent
5072d70f38
commit
1a7612071a
|
@ -55,12 +55,10 @@ func init() {
|
||||||
func hideCaddyfile(cctx caddy.Context) error {
|
func hideCaddyfile(cctx caddy.Context) error {
|
||||||
ctx := cctx.(*httpContext)
|
ctx := cctx.(*httpContext)
|
||||||
for _, cfg := range ctx.siteConfigs {
|
for _, cfg := range ctx.siteConfigs {
|
||||||
|
|
||||||
// if no Caddyfile exists exit.
|
// if no Caddyfile exists exit.
|
||||||
if cfg.originCaddyfile == "" {
|
if cfg.originCaddyfile == "" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
absRoot, err := filepath.Abs(cfg.Root)
|
absRoot, err := filepath.Abs(cfg.Root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user