Skip to content

Commit

Permalink
cmd/tetragon: remove useless check in flags reading
Browse files Browse the repository at this point in the history
Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Sep 29, 2023
1 parent b93e3e2 commit 8812d66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/tetragon/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ func readAndSetFlags() {

option.Config.KMods = viper.GetStringSlice(keyKmods)

if viper.IsSet(keyTracingPolicy) {
option.Config.TracingPolicy = viper.GetString(keyTracingPolicy)
}
option.Config.TracingPolicy = viper.GetString(keyTracingPolicy)

option.Config.StackTracesKernelAddresses = viper.GetBool(keyStackTracesKernelAddresses)
}

0 comments on commit 8812d66

Please sign in to comment.