Skip to content

Commit

Permalink
Address PR comment
Browse files Browse the repository at this point in the history
Signed-off-by: ShutingZhao <[email protected]>
  • Loading branch information
realshuting committed Feb 7, 2022
1 parent 97753d0 commit 59a0f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kyverno/jp/jp_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func Command() *cobra.Command {
var input interface{}
var jsonParser *json.Decoder
if filename != "" {
f, err := ioutil.ReadFile(filename)
f, err := ioutil.ReadFile(filepath.Clean(filename))
if err != nil {
return fmt.Errorf("error opening input file: %w", err)
}
Expand Down

0 comments on commit 59a0f9d

Please sign in to comment.