Skip to content

Commit 4b4db82

Browse files
committed
format
1 parent 8e5fab5 commit 4b4db82

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

sentry/src/main/java/io/sentry/config/FilesystemPropertiesLoader.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import java.io.BufferedInputStream;
66
import java.io.File;
77
import java.io.FileInputStream;
8-
import java.io.IOException;
98
import java.io.InputStream;
109
import java.util.Properties;
1110
import org.jetbrains.annotations.NotNull;
@@ -33,10 +32,14 @@ public FilesystemPropertiesLoader(@NotNull String filePath, @NotNull ILogger log
3332
}
3433
} else if (!f.isFile()) {
3534
logger.log(
36-
SentryLevel.ERROR, "Failed to load Sentry configuration since it is not a file or does not exist: %s", filePath);
35+
SentryLevel.ERROR,
36+
"Failed to load Sentry configuration since it is not a file or does not exist: %s",
37+
filePath);
3738
} else if (!f.canRead()) {
3839
logger.log(
39-
SentryLevel.ERROR, "Failed to load Sentry configuration since it is not readable: %s", filePath);
40+
SentryLevel.ERROR,
41+
"Failed to load Sentry configuration since it is not readable: %s",
42+
filePath);
4043
}
4144
} catch (Throwable e) {
4245
logger.log(

sentry/src/test/java/io/sentry/config/FilesystemPropertiesLoaderTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class FilesystemPropertiesLoaderTest {
2626
fun `returns properties when file has whitespace`() {
2727
val file = folder.newFile("sentry.properties")
2828
file.writeText("dsn=some-dsn", Charset.defaultCharset())
29-
val loader = FilesystemPropertiesLoader(" " + file.absolutePath + " ", NoOpLogger.getInstance())
29+
val loader =
30+
FilesystemPropertiesLoader(" " + file.absolutePath + " ", NoOpLogger.getInstance())
3031
val properties = loader.load()
3132
assertNotNull(properties)
3233
assertEquals("some-dsn", properties["dsn"])

0 commit comments

Comments
 (0)