Skip to content

Commit

Permalink
fix getTestAppCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
blaugold committed Jan 16, 2020
1 parent 8635d9b commit 398e40b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Future<dynamic> _readJsonFile(File file) async {
/// (UNSPLASH_ACCESS_KEY, UNSPLASH_SECRET_KEY)
/// or a file ('.test-unsplash-credentials.json').
Future<AppCredentials> getTestAppCredentials() async {
final accessKey = String.fromEnvironment('UNSPLASH_ACCESS_KEY');
final secretKey = String.fromEnvironment('UNSPLASH_SECRET_KEY');
final accessKey = Platform.environment['UNSPLASH_ACCESS_KEY'];
final secretKey = Platform.environment['UNSPLASH_SECRET_KEY'];

if (accessKey != null || secretKey != null) {
if (accessKey != null && secretKey != null) {
return AppCredentials(
accessKey: accessKey,
secretKey: secretKey,
Expand Down

0 comments on commit 398e40b

Please # to comment.