Skip to content

Commit

Permalink
修复golangci-lint规范问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dove0012 committed Dec 3, 2024
1 parent 61346ea commit 7806b68
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (n *NodeManager) GetServiceRoles(opt *cloudprovider.CommonOption, roleType
}

// ListDiskTypes get disk type list
func (nm *NodeManager) ListDiskTypes(instanceTypes []string, zones []string, opt *cloudprovider.CommonOption) (
func (n *NodeManager) ListDiskTypes(instanceTypes []string, zones []string, opt *cloudprovider.CommonOption) (
map[string]string, error) {
return nil, cloudprovider.ErrCloudNotImplemented
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (n *NodeManager) GetServiceRoles(opt *cloudprovider.CommonOption, roleType
}

// ListDiskTypes get disk type list
func (nm *NodeManager) ListDiskTypes(instanceTypes []string, zones []string, opt *cloudprovider.CommonOption) (
func (n *NodeManager) ListDiskTypes(instanceTypes []string, zones []string, opt *cloudprovider.CommonOption) (
map[string]string, error) {
return nil, cloudprovider.ErrCloudNotImplemented
}
Original file line number Diff line number Diff line change
Expand Up @@ -920,4 +920,3 @@ func (ng *NodeGroup) GetProjectCaResourceQuota(groups []proto.NodeGroup,
opt *cloudprovider.CommonOption) ([]*proto.ProjectAutoscalerQuota, error) {
return nil, nil
}

16 changes: 8 additions & 8 deletions bcs-services/bcs-cluster-manager/internal/remote/cmdb/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func (c Condition) String() string {
}

var (
and Condition = "AND"
or Condition = "OR"
in Condition = "IN"// nolint
and Condition = "AND" // nolint
or Condition = "OR" // nolint
in Condition = "IN" // nolint
)

// Page page
Expand Down Expand Up @@ -297,11 +297,11 @@ type HostDetailData struct {
}

const (
keyBizID = "BsiId"
keySvrIP = "SvrIp"
methodBusiness = "Business"
methodServer = "Server"
methodBusinessRaw = "BusinessRaw"
keyBizID = "BsiId" // nolint
keySvrIP = "SvrIp" // nolint
methodBusiness = "Business" // nolint
methodServer = "Server" // nolint
methodBusinessRaw = "BusinessRaw" // nolint
)

// BizInfo business id info
Expand Down

0 comments on commit 7806b68

Please sign in to comment.