We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5cba35 commit d419976Copy full SHA for d419976
source/Modules/FileContentDsc.Common/FileContentDsc.Common.psm1
@@ -177,11 +177,15 @@ function Get-FileEncoding
177
# The parameter for reading a file as a byte stream are different between PSv6 and later and earlier.
178
$ByteParam = if ($PSVersionTable.PSVersion.Major -ge 6)
179
{
180
- @{AsByteStream = $true }
+ @{
181
+ AsByteStream = $true
182
+ }
183
}
184
else
185
- @{Encoding = 'byte' }
186
187
+ Encoding = 'byte'
188
189
190
191
[System.Byte[]] $byte = Get-Content @ByteParam -ReadCount 4 -TotalCount 4 -Path $Path
0 commit comments