Fixing a compilation error (#2712)

./caddy.go:230:12: cannot use *dep (type debug.Module) as type *debug.Module in return argument
./caddy.go:233:12: cannot use bi.Main (type debug.Module) as type *debug.Module in return argument
This commit is contained in:
Albert Shirima 2019-08-18 04:14:55 +03:00 committed by Matt Holt
parent 4950ce485f
commit 42f75a4ca9
1 changed files with 2 additions and 2 deletions

View File

@ -227,10 +227,10 @@ func goModule(mod *debug.Module) *debug.Module {
// once that issue is fixed, we should just be able to use bi.Main... hopefully.
for _, dep := range bi.Deps {
if dep.Path == mod.Path {
return *dep
return dep
}
}
return bi.Main
return &bi.Main
}
return mod
}