Skip to content

Commit

Permalink
🟢 unchecked lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Jan 23, 2024
1 parent 1198382 commit ae0b800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/cnquery/cmd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ func (c *cnqueryPlugin) RunQuery(conf *run.RunQueryConfig, runtime *providers.Ru
}
defer func() {
// prevent the recording from being closed multiple times
connectAssetRuntime.SetRecording(providers.NullRecording{})
err = connectAssetRuntime.SetRecording(providers.NullRecording{})
if err != nil {
log.Error().Err(err).Msg("failed to set the recording layer to null")
}
sh.Close()
}()

Expand Down

0 comments on commit ae0b800

Please sign in to comment.