Skip to content

Commit 246d2ae

Browse files
committed
fix: linting
2 parents 39952b7 + 7abebe5 commit 246d2ae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
./gradlew ktlintCheck

src/main/kotlin/io/github/bayang/jelu/config/JeluProperties.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import javax.validation.constraints.Positive
99
@ConfigurationProperties(prefix = "jelu")
1010
@ConstructorBinding
1111
@Validated
12-
data class JeluProperties(val database: Database, val files: Files, val session: Session, val cors: Cors=Cors()) {
12+
data class JeluProperties(val database: Database, val files: Files, val session: Session, val cors: Cors = Cors()) {
1313

1414
data class Database(
1515
@get:NotBlank var path: String

src/main/kotlin/io/github/bayang/jelu/config/SecurityConfig.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SecurityConfig : WebSecurityConfigurerAdapter() {
1111

1212
override fun configure(http: HttpSecurity) {
1313
http
14-
.cors{}
14+
.cors { }
1515
.csrf { it.disable() }
1616
.logout { it ->
1717
it.logoutUrl("/api/logout")

0 commit comments

Comments
 (0)