Skip to content

Commit

Permalink
fix context logic
Browse files Browse the repository at this point in the history
Signed-off-by: binnn6 <[email protected]>
  • Loading branch information
binnn6 committed Nov 16, 2023
1 parent e16793d commit 830635b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,8 @@ func hasPlugin(plugins []string, target string) bool {
}

func GetRuntimeContext() (RuntimeContext, error) {
if ctx, err := parseContext(); err != nil {
ctx, err := parseContext()
if err != nil {
return nil, err
}
return ctx, nil
Expand Down

0 comments on commit 830635b

Please sign in to comment.