Skip to content

Commit

Permalink
Simplify if else-block in cpu limit helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed May 23, 2024
1 parent 2ee90cb commit cfe561b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/turing/cluster/servicebuilder/service_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,8 @@ func (sb *clusterSvcBuilder) getCPULimit(resourceRequest *models.ResourceRequest
cpuLimit := cluster.ComputeResource(resourceRequest.CPURequest,
sb.knativeServiceConfig.UserContainerCPULimitRequestFactor)
return &cpuLimit
} else {
return nil
}
return nil
}
return &resourceRequest.CPULimit
}
Expand Down

0 comments on commit cfe561b

Please sign in to comment.