Skip to content

Commit d419976

Browse files
committed
Fix hashtable format.
1 parent b5cba35 commit d419976

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/Modules/FileContentDsc.Common/FileContentDsc.Common.psm1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,15 @@ function Get-FileEncoding
177177
# The parameter for reading a file as a byte stream are different between PSv6 and later and earlier.
178178
$ByteParam = if ($PSVersionTable.PSVersion.Major -ge 6)
179179
{
180-
@{AsByteStream = $true }
180+
@{
181+
AsByteStream = $true
182+
}
181183
}
182184
else
183185
{
184-
@{Encoding = 'byte' }
186+
@{
187+
Encoding = 'byte'
188+
}
185189
}
186190

187191
[System.Byte[]] $byte = Get-Content @ByteParam -ReadCount 4 -TotalCount 4 -Path $Path

0 commit comments

Comments
 (0)