mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-22 03:03:23 +00:00
fixes to casing, and some basic functions changed to advanced
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
|
||||
param()
|
||||
|
||||
Function Update-FirstObjectProperties {
|
||||
|
||||
Try {
|
||||
function Update-FirstObjectProperties {
|
||||
[CmdletBinding()]
|
||||
param()
|
||||
try {
|
||||
$Union = @()
|
||||
$Input | ForEach-Object {
|
||||
If ($Union.Count) {
|
||||
@@ -17,7 +18,7 @@ Function Update-FirstObjectProperties {
|
||||
}
|
||||
$Union
|
||||
}
|
||||
Catch {
|
||||
catch {
|
||||
throw "Failed updating the properties of the first object: $_"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user