Skip to content

Commit ade4c3e

Browse files
Copilotjohlju
andcommitted
Fix file endings and trailing whitespace in database commands
- Remove trailing whitespace from line 111 in Remove-SqlDscDatabase.ps1 - Add exactly one blank line at the end of all new database command files - Resolves PSAvoidTrailingWhitespace linting rule violation Co-authored-by: johlju <7189721+johlju@users.noreply.github.com>
1 parent cc00e28 commit ade4c3e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

source/Public/Get-SqlDscDatabase.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ function Get-SqlDscDatabase
100100

101101
return [Microsoft.SqlServer.Management.Smo.Database[]] $databaseObject
102102
}
103-
}
103+
}

source/Public/New-SqlDscDatabase.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,4 @@ function New-SqlDscDatabase
195195
}
196196
}
197197
}
198-
}
198+
}

source/Public/Remove-SqlDscDatabase.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function Remove-SqlDscDatabase
108108
{
109109
$Name = $DatabaseObject.Name
110110
Write-Verbose -Message ($script:localizedData.Database_Remove -f $Name, $DatabaseObject.Parent.InstanceName)
111-
111+
112112
# Check if the database is a system database (cannot be dropped)
113113
$systemDatabases = @('master', 'model', 'msdb', 'tempdb')
114114
if ($Name -in $systemDatabases)
@@ -139,4 +139,4 @@ function Remove-SqlDscDatabase
139139
}
140140
}
141141
}
142-
}
142+
}

source/Public/Set-SqlDscDatabase.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,4 @@ function Set-SqlDscDatabase
225225
}
226226
}
227227
}
228-
}
228+
}

source/Public/Test-SqlDscDatabase.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,4 @@ function Test-SqlDscDatabase
165165

166166
return $isDatabaseInDesiredState
167167
}
168-
}
168+
}

0 commit comments

Comments
 (0)