-
-
Save mantono/659addbef5c8a99c64878236d7e33d66 to your computer and use it in GitHub Desktop.
White space patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4b02fc00329c61e96223bc43fddaeb2685d2c5cd Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Anton=20=C3=96sterberg?= <anton.osterberg@gmail.com> | |
Date: Mon, 3 Feb 2020 12:22:19 +0100 | |
Subject: [PATCH] Remove strange whitespace | |
--- | |
src/main/kotlin/se/zensum/firestore/FirestoreClient.kt | 5 ++--- | |
1 file changed, 2 insertions(+), 3 deletions(-) | |
diff --git a/src/main/kotlin/se/zensum/firestore/FirestoreClient.kt b/src/main/kotlin/se/zensum/firestore/FirestoreClient.kt | |
index 139909a..9180a34 100644 | |
--- a/src/main/kotlin/se/zensum/firestore/FirestoreClient.kt | |
+++ b/src/main/kotlin/se/zensum/firestore/FirestoreClient.kt | |
@@ -1,6 +1,5 @@ | |
package se.zensum.firestore | |
- | |
import com.google.api.gax.retrying.RetrySettings | |
import com.google.auth.oauth2.GoogleCredentials | |
import com.google.cloud.firestore.Firestore | |
@@ -19,9 +18,9 @@ private val init = Semaphore(1) | |
private const val DEFAULT_CREDENTIALS_PATH = "src/main/resources/firestore/credentials.json" | |
private const val CREDENTIALS_ENV_VAR = "GOOGLE_CREDENTIALS" | |
- | |
+ | |
private fun loadCredentials(): GoogleCredentials { | |
- val stream: InputStream = if(System.getenv(CREDENTIALS_ENV_VAR) != null) { | |
+ val stream: InputStream = if(System.getenv(CREDENTIALS_ENV_VAR) != null) { | |
val bytes: ByteArray = System.getenv().getValue(CREDENTIALS_ENV_VAR).toByteArray() | |
ByteArrayInputStream(bytes) | |
} else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment