Skip to content

Commit

Permalink
Cleanup of 'Get-DatumType' (#115)
Browse files Browse the repository at this point in the history
Co-authored-by: Gael <gaelcolas@users.noreply.github.com>
  • Loading branch information
raandree and gaelcolas committed Apr 8, 2021
1 parent c7daefc commit ccdb487
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Formatting in all files with VSCode formatting according to the 'settings.json' file taken from Sampler
- Added yaml format config settings 'singleQuote' and 'bracketSpacing' and reformatted all yaml files according to the new settings.
- Cleanup
- Get-DatumType.ps1
- Merge-DatumArray.ps1
- Merge-Hashtable.ps1
- Compare-Hashtable.ps1
Expand Down
5 changes: 4 additions & 1 deletion source/Private/Get-DatumType.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
function Get-DatumType
{
[OutputType([string])]
param (
[Parameter(Mandatory = $true)]
[AllowNull()]
[object]
$DatumObject
)
Expand All @@ -11,7 +14,7 @@ function Get-DatumType
}
elseif ($DatumObject -isnot [string] -and $DatumObject -is [System.Collections.IEnumerable])
{
if ($Datumobject -as [hashtable[]])
if ($DatumObject -as [hashtable[]])
{
'hash_array'
}
Expand Down

0 comments on commit ccdb487

Please sign in to comment.