mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 08:48:32 +02:00
refactor: minor styling fixes; deadcode cleanup and correct log level
This commit is contained in:
@@ -15,6 +15,10 @@ func checkExists(ctx context.Context, r types.Route) error {
|
||||
if r.UseLoadBalance() { // skip checking for load balanced routes
|
||||
return nil
|
||||
}
|
||||
ep := entrypoint.FromCtx(ctx)
|
||||
if ep == nil {
|
||||
return fmt.Errorf("entrypoint not found in context")
|
||||
}
|
||||
var (
|
||||
existing types.Route
|
||||
ok bool
|
||||
|
||||
Reference in New Issue
Block a user