Skip to content

Commit

Permalink
feat(dingo): lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMaidurov committed Nov 22, 2024
1 parent 7cb6ac8 commit afc3c6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dingo.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ var (
// this is super expensive (memory wise), so it should only be used for debugging purposes
func EnableCircularTracing() {
traceCircular = make([]circularTraceEntry, 0)
slog.SetLogLoggerLevel(slog.LevelDebug)
_ = slog.SetLogLoggerLevel(slog.LevelDebug)
}

func EnableInjectionTracing() {
injectionTracing = true
slog.SetLogLoggerLevel(slog.LevelDebug)
_ = slog.SetLogLoggerLevel(slog.LevelDebug)
}

type (
Expand Down Expand Up @@ -384,7 +384,9 @@ func (injector *Injector) createInstanceOfAnnotatedType(t reflect.Type, annotati
for _, ct := range circularTrace {
slog.Debug(fmt.Sprintf("%s#%s: %s", ct.typ.PkgPath(), ct.typ.Name(), ct.annotation))
}

slog.Debug(fmt.Sprintf("%s#%s: %s", t.PkgPath(), t.Name(), annotation))

panic("detected circular dependency")
}
}
Expand Down

0 comments on commit afc3c6a

Please sign in to comment.