Skip to content

Commit 7c4702d

Browse files
committed
fix lint error
Signed-off-by: LivingCcj <[email protected]>
1 parent 69cd5e3 commit 7c4702d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/apis/cluster/v1alpha1/cluster_helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func (c *Cluster) APIEnablement(gvk schema.GroupVersionKind) APIEnablementStatus
6666
return APIUnknown
6767
}
6868

69+
// IsClusterReady checks if the Cluster is ready.
6970
func (c *Cluster) IsClusterReady() bool {
7071
return meta.IsStatusConditionPresentAndEqual(c.Status.Conditions, ClusterConditionReady, metav1.ConditionTrue)
7172
}

pkg/scheduler/core/division_algorithm.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ package core
1818

1919
import (
2020
"fmt"
21-
"k8s.io/klog/v2"
2221
"sort"
2322

23+
"k8s.io/klog/v2"
24+
2425
policyv1alpha1 "github.com/karmada-io/karmada/pkg/apis/policy/v1alpha1"
2526
workv1alpha2 "github.com/karmada-io/karmada/pkg/apis/work/v1alpha2"
2627
"github.com/karmada-io/karmada/pkg/scheduler/core/spreadconstraint"

0 commit comments

Comments
 (0)