File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ public async Task<ICredential> GetCredentialAsync(InputArguments input)
132
132
// If we have a specific username then we can try and find an existing credential for that account.
133
133
// If not, we should check what accounts are available in the store and prompt the user if there
134
134
// are multiple options.
135
- string userName = null ;
135
+ string userName = input . UserName ;
136
136
bool addAccount = false ;
137
- if ( string . IsNullOrWhiteSpace ( input . UserName ) )
137
+ if ( string . IsNullOrWhiteSpace ( userName ) )
138
138
{
139
139
IList < string > accounts = _context . CredentialStore . GetAccounts ( service ) ;
140
140
_context . Trace . WriteLine ( $ "Found { accounts . Count } accounts in the store for service={ service } .") ;
@@ -172,7 +172,7 @@ public async Task<ICredential> GetCredentialAsync(InputArguments input)
172
172
173
173
// No existing credential was found, create a new one
174
174
_context . Trace . WriteLine ( "Creating new credential..." ) ;
175
- credential = await GenerateCredentialAsync ( remoteUri , input . UserName ) ;
175
+ credential = await GenerateCredentialAsync ( remoteUri , userName ) ;
176
176
_context . Trace . WriteLine ( "Credential created." ) ;
177
177
}
178
178
else
You can’t perform that action at this time.
0 commit comments