From 830635ba6add5d04b8f09e39b5b3ad45009579a2 Mon Sep 17 00:00:00 2001 From: binnn6 <734819342@qq.com> Date: Thu, 16 Nov 2023 22:08:20 +0800 Subject: [PATCH] fix context logic Signed-off-by: binnn6 <734819342@qq.com> --- context/context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index 21f7030..a486410 100644 --- a/context/context.go +++ b/context/context.go @@ -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