You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 23, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: Module/PSCurrent/Import-XRefData.ps1
+16-75Lines changed: 16 additions & 75 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ function Import-XRefData {
35
35
36
36
$MappingWarning=$false
37
37
$ConflictingData=$false
38
+
$NewKeyAdded=$false
38
39
39
40
}
40
41
@@ -63,85 +64,21 @@ function Import-XRefData {
63
64
# Process ApiKey (Check parameter set first since ConfigStaging won't exist in the ApiKey set)
64
65
if ($PSCmdlet.ParameterSetName-eq"ApiKey"-or ($ImportStaging.psobject.Properties.Name-contains"ApiKey"-and-not [string]::IsNullOrWhiteSpace($ImportStaging.ApiKey))) {
65
66
66
-
# Check if current API key is not set
67
-
if ([string]::IsNullOrWhiteSpace($script:TwitchData.ApiKey)) {
68
-
# API key is not set
67
+
if ($PSCmdlet.ShouldProcess("API key","Import")) {
69
68
70
-
# Specify "Import" since there's nothing being replaced
71
-
if ($PSCmdlet.ShouldProcess("API key","Import")) {
0 commit comments