replace tabs with 4-space (#8739)

This commit is contained in:
William Cheng 2021-02-19 10:54:55 +08:00 committed by GitHub
parent df5050f3b0
commit d5a9b53bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -22,17 +22,17 @@ function Get-FunctionsToExport {
throw $ParserErr throw $ParserErr
} else { } else {
foreach ($name in 'Begin', 'Process', 'End') { foreach ($name in 'Begin', 'Process', 'End') {
foreach ($Statement in $Ast."${name}Block".Statements) { foreach ($Statement in $Ast."${name}Block".Statements) {
if ( if (
[String]::IsNullOrWhiteSpace($Statement.Name) -or [String]::IsNullOrWhiteSpace($Statement.Name) -or
$Statement.Extent.ToString() -notmatch $Statement.Extent.ToString() -notmatch
('function\W+{0}' -f $Statement.Name) ('function\W+{0}' -f $Statement.Name)
) { ) {
continue continue
} }
$Statement.Name $Statement.Name
} }
} }
} }
} }

View File

@ -28,17 +28,17 @@ function Get-FunctionsToExport {
throw $ParserErr throw $ParserErr
} else { } else {
foreach ($name in 'Begin', 'Process', 'End') { foreach ($name in 'Begin', 'Process', 'End') {
foreach ($Statement in $Ast."${name}Block".Statements) { foreach ($Statement in $Ast."${name}Block".Statements) {
if ( if (
[String]::IsNullOrWhiteSpace($Statement.Name) -or [String]::IsNullOrWhiteSpace($Statement.Name) -or
$Statement.Extent.ToString() -notmatch $Statement.Extent.ToString() -notmatch
('function\W+{0}' -f $Statement.Name) ('function\W+{0}' -f $Statement.Name)
) { ) {
continue continue
} }
$Statement.Name $Statement.Name
} }
} }
} }
} }