fix: cleanup unassigned err log (#857)

Ref: #843 

Addressed one of the bug fixes needed to merge before release.
This commit is contained in:
AlexTalreja
2025-07-11 00:28:35 +00:00
committed by GitHub
parent edf32abd84
commit c081ace46b

View File

@@ -725,11 +725,6 @@ func run(cmd *Command) error {
cmd.logger.WarnContext(ctx, "`authSources` is deprecated, use `authServices` instead")
cmd.cfg.AuthServiceConfigs = authSourceConfigs
}
if err != nil {
errMsg := fmt.Errorf("unable to parse tool file at %q: %w", cmd.tools_file, err)
cmd.logger.ErrorContext(ctx, errMsg.Error())
return errMsg
}
instrumentation, err := telemetry.CreateTelemetryInstrumentation(versionString)
if err != nil {