Skip to content

Commit

Permalink
Check for null values when calling Convert-EnumToString on PSCustomOb…
Browse files Browse the repository at this point in the history
…ject (microsoft#194)

* Add null check to enum conversion

* Increment version number

* Use AllowNull instead

* Fix whitespace

* Fix whitespace
  • Loading branch information
joseartrivera authored Jun 29, 2020
1 parent 39b6a38 commit 4d67f87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion StoreBroker.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
CompanyName = 'Microsoft Corporation'
Copyright = 'Copyright (C) Microsoft Corporation. All rights reserved.'

ModuleVersion = '2.1.11'
ModuleVersion = '2.1.12'
Description = 'Provides command-line access to the Windows Store Submission REST API.'

RootModule = 'StoreBroker/StoreIngestionApi.psm1'
Expand Down
1 change: 1 addition & 0 deletions StoreBroker/Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,7 @@ function Convert-EnumToString
[Parameter(
ValueFromPipeline,
Mandatory)]
[AllowNull()]
$InputObject
)

Expand Down

0 comments on commit 4d67f87

Please sign in to comment.