mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 11:15:46 +00:00
Address(IPAM): Fix trailing whitespace (with Visual Code Formater)
This commit is contained in:
parent
cfb53cf933
commit
354aeb66d3
5 changed files with 123 additions and 122 deletions
|
|
@ -71,7 +71,8 @@ function Set-NetboxIPAMAddress {
|
||||||
if ($PSBoundParameters.ContainsKey('Assigned_Object_Type') -or $PSBoundParameters.ContainsKey('Assigned_Object_Id')) {
|
if ($PSBoundParameters.ContainsKey('Assigned_Object_Type') -or $PSBoundParameters.ContainsKey('Assigned_Object_Id')) {
|
||||||
if ((-not [string]::IsNullOrWhiteSpace($Assigned_Object_Id)) -and [string]::IsNullOrWhiteSpace($Assigned_Object_Type)) {
|
if ((-not [string]::IsNullOrWhiteSpace($Assigned_Object_Id)) -and [string]::IsNullOrWhiteSpace($Assigned_Object_Type)) {
|
||||||
throw "Assigned_Object_Type is required when specifying Assigned_Object_Id"
|
throw "Assigned_Object_Type is required when specifying Assigned_Object_Id"
|
||||||
} elseif ((-not [string]::IsNullOrWhiteSpace($Assigned_Object_Type)) -and [string]::IsNullOrWhiteSpace($Assigned_Object_Id)) {
|
}
|
||||||
|
elseif ((-not [string]::IsNullOrWhiteSpace($Assigned_Object_Type)) -and [string]::IsNullOrWhiteSpace($Assigned_Object_Id)) {
|
||||||
throw "Assigned_Object_Id is required when specifying Assigned_Object_Type"
|
throw "Assigned_Object_Id is required when specifying Assigned_Object_Type"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue