chore(code): remove dead code
This commit is contained in:
@@ -51,11 +51,7 @@ func NewService(service types.ServiceConfig, appName string) *Service {
|
|||||||
|
|
||||||
// AddPort adds a port to the service.
|
// AddPort adds a port to the service.
|
||||||
func (s *Service) AddPort(port types.ServicePortConfig, serviceName ...string) {
|
func (s *Service) AddPort(port types.ServicePortConfig, serviceName ...string) {
|
||||||
name := s.service.Name
|
var name string
|
||||||
if len(serviceName) > 0 {
|
|
||||||
name = serviceName[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
var finalport intstr.IntOrString
|
var finalport intstr.IntOrString
|
||||||
|
|
||||||
if targetPort := utils.GetServiceNameByPort(int(port.Target)); targetPort == "" {
|
if targetPort := utils.GetServiceNameByPort(int(port.Target)); targetPort == "" {
|
||||||
|
Reference in New Issue
Block a user