Skip to content

Commit ee63ca1

Browse files
committed
Clean up minor code style issues
1 parent 8e92e8e commit ee63ca1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function Get-TextEolCharacter
5858
)
5959

6060
$eolChar = "`r`n"
61+
6162
if (-not $Text.Contains("`r`n") -and $Text.Contains("`r"))
6263
{
6364
$eolChar = "`r"
@@ -170,7 +171,7 @@ function Get-FileEncoding
170171
$Path
171172
)
172173

173-
[byte[]]$byte = Get-Content -Encoding byte -ReadCount 4 -TotalCount 4 -Path $Path
174+
[System.Byte[]] $byte = Get-Content -Encoding byte -ReadCount 4 -TotalCount 4 -Path $Path
174175

175176
if ($byte[0] -eq 0xef -and $byte[1] -eq 0xbb -and $byte[2] -eq 0xbf)
176177
{

0 commit comments

Comments
 (0)