Skip to content

Commit ce16564

Browse files
Prettify codestyle.
1 parent 086296a commit ce16564

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/kotlin/org/exploit/keeper/filter/KeeperAuthFilter.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ class KeeperAuthFilter(
2222
return
2323

2424
val instanceId = p0.getHeaderString(KeeperAuthenticator.HEADER_INSTANCE_ID)
25-
?.toIntOrNull() ?: throw NotAuthorizedException("Invalid instance id")
25+
?.toIntOrNull()
26+
?: throw NotAuthorizedException("Invalid instance id")
2627

2728
val signature = p0.getHeaderString(KeeperAuthenticator.HEADER_SIGNATURE)
2829
?: throw NotAuthorizedException("Missing signature")
2930

30-
val timestamp = p0.getHeaderString(KeeperAuthenticator.HEADER_TIMESTAMP)?.toLongOrNull()
31+
val timestamp = p0.getHeaderString(KeeperAuthenticator.HEADER_TIMESTAMP)
32+
?.toLongOrNull()
3133
?: throw NotAuthorizedException("Missing timestamp")
3234

3335
try {

0 commit comments

Comments
 (0)