Skip to content

Commit 8ad44b8

Browse files
SteveL-MSFTtgauth
andauthored
Apply suggestions from code review
Co-authored-by: Tess Gauthier <tgauth@bu.edu>
1 parent 1bb0fb0 commit 8ad44b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

powershell-adapter/Tests/TestAdapter/testadapter.resource.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ switch ($Operation) {
5151
{ @('Get','Set','Test') -contains $_ } {
5252
"Operation: $Operation" | Write-DscTrace
5353

54-
if (($inputobj.resources.properties.TestCaseId -eq 1 ) -or ($_ -eq 'Export')){
54+
if ($inputobj.resources.properties.TestCaseId -eq 1) {
5555
"Is TestCaseId 1" | Write-DscTrace
5656
@{result = @(@{name = $inputobj.resources.name; type = $inputobj.resources.type; properties = @{'TestCaseId' = 1; 'Input' = ''}})} | ConvertTo-Json -Depth 10 -Compress
5757
}
5858

5959
}
6060
'Export' {
6161
@(@{name = $inputobj.resources.name; type = $inputobj.resources.type; properties = @{'TestCaseId' = 1; 'Input' = ''}}) | ConvertTo-Json -Depth 10 -Compress
62-
@(@{name = $inputobj.resources.name; type = $inputobj.resources.type; properties = @{'TestCaseId' =2 ; 'Input' = ''}}) | ConvertTo-Json -Depth 10 -Compress
62+
@(@{name = $inputobj.resources.name; type = $inputobj.resources.type; properties = @{'TestCaseId' = 2; 'Input' = ''}}) | ConvertTo-Json -Depth 10 -Compress
6363
}
6464
'Validate' {
6565
@{ valid = $true } | ConvertTo-Json

0 commit comments

Comments
 (0)