Merge pull request #4385 from liuan1986/master

if error is not NULL,Maybe return error would be better.
This commit is contained in:
KubeSphere CI Bot
2021-10-22 12:30:11 +08:00
committed by GitHub

View File

@@ -97,7 +97,7 @@ func Run(s *options.ServerRunOptions, ctx context.Context) error {
err = apiserver.PrepareRun(ctx.Done())
if err != nil {
return nil
return err
}
return apiserver.Run(ctx)