Skip to content

Commit

Permalink
Use ktlint 1.3.0 for code formatting
Browse files Browse the repository at this point in the history
Not worth mentioning in CHANGELOG.md as this doesn't affect library
users.
  • Loading branch information
saschpe committed Jun 12, 2024
1 parent c15fc6f commit 71b29c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Log.error("Oops!")
Log.assert("Something went wrong!", throwable)
```

or, if you prefer:
Or, if you prefer:

```kotlin
Log.verbose { "FYI" }
Expand Down Expand Up @@ -170,8 +170,8 @@ val httpClient = HttpClient(CIO) {

## Users

- [Alpha+ Player - Unofficial player for Soma FM](https://play.google.com/store/apps/details?id=saschpe.alphaplus)
- [GameOn - Get games on sale](https://play.google.com/store/apps/details?id=saschpe.gameon)
- [Alpha+ Player Unofficial player for Soma FM](https://play.google.com/store/apps/details?id=saschpe.alphaplus)
- [GameOn Get games on sale](https://play.google.com/store/apps/details?id=saschpe.gameon)

## License

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ spotless {
}
kotlin {
target("**/*.kt")
ktlint("1.2.1").setEditorConfigPath(".editorconfig")
ktlint("1.3.0").setEditorConfigPath(".editorconfig")
}
kotlinGradle {
ktlint("1.2.1").setEditorConfigPath(".editorconfig")
ktlint("1.3.0").setEditorConfigPath(".editorconfig")
}
}

Expand Down
4 changes: 1 addition & 3 deletions log4k/src/jvmTest/kotlin/saschpe/log4k/FileLoggerTest.jvm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ internal actual fun deleteRecursively(path: String) {
File(path).deleteRecursively()
}

internal actual fun filesInFolder(path: String): Int {
return File(path).listFiles()?.size ?: 0
}
internal actual fun filesInFolder(path: String): Int = File(path).listFiles()?.size ?: 0

0 comments on commit 71b29c3

Please sign in to comment.