cleanup: remove unnecessary codes

Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
kerthcet
2022-05-11 16:07:12 +08:00
parent cf64022a0f
commit 41e46a1bb4
3 changed files with 26 additions and 2 deletions

View File

@@ -1038,7 +1038,7 @@ func (f *frameworkImpl) RunBindPlugins(ctx context.Context, state *framework.Cyc
}
for _, bp := range f.bindPlugins {
status = f.runBindPlugin(ctx, bp, state, pod, nodeName)
if status != nil && status.Code() == framework.Skip {
if status.IsSkip() {
continue
}
if !status.IsSuccess() {