Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMichaelis committed Jun 20, 2021
1 parent f7e2846 commit b5b2763
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,11 @@ private async Task<string> GetAccessToken()
}
Console.WriteLine();

string apiKey = GetApiKey();

string accessToken = Settings.Default.AccessToken;

if (string.IsNullOrEmpty(accessToken) && !string.IsNullOrWhiteSpace(apiKey))
if (string.IsNullOrEmpty(accessToken))
{
string apiKey = GetApiKey();
using var http = new HttpListener();
try
{
Expand Down

0 comments on commit b5b2763

Please sign in to comment.