mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
style: fixing codeclimate warning
Looks like conditional was excessive, it works as expected even without it.
This commit is contained in:
parent
4cb6329d13
commit
34a806f130
1 changed files with 2 additions and 6 deletions
|
@ -398,12 +398,8 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container
|
||||||
}
|
}
|
||||||
$scope.formValues.MacAddress = d.Config.MacAddress;
|
$scope.formValues.MacAddress = d.Config.MacAddress;
|
||||||
|
|
||||||
if (d.HostConfig.Dns[0]) {
|
$scope.formValues.Dns1 = d.HostConfig.Dns[0];
|
||||||
$scope.formValues.Dns1 = d.HostConfig.Dns[0];
|
$scope.formValues.Dns2 = d.HostConfig.Dns[1];
|
||||||
}
|
|
||||||
if (d.HostConfig.Dns[1]) {
|
|
||||||
$scope.formValues.Dns2 = d.HostConfig.Dns[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
// ExtraHosts
|
// ExtraHosts
|
||||||
if ($scope.config.HostConfig.ExtraHosts) {
|
if ($scope.config.HostConfig.ExtraHosts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue