Skip to content

Commit

Permalink
fix some detekt warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Apr 10, 2024
1 parent 1714661 commit 180a69d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Project https://github.com/simple-robot/simpler-robot
* Email [email protected]
*
* This file is part of the Simple Robot Library.
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -173,6 +173,7 @@ public actual enum class TimeUnit(private val scale: Long) {
* @param dst result unit scale
* @param src source unit scale
*/
@Suppress("UnnecessaryParentheses")
private fun cvt(d: Long, dst: Long, src: Long): Long {
var r: Long
return when {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ internal actual fun <T : Any> loadProvidersInternal(type: KClass<T>): Sequence<(
}

@PublishedApi
@Suppress("TopLevelPropertyNaming")
internal actual const val isJvm: Boolean = false
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Project https://github.com/simple-robot/simpler-robot
* Email [email protected]
*
* This file is part of the Simple Robot Library.
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -168,6 +168,7 @@ public actual enum class TimeUnit(private val scale: Long) {
* @param dst result unit scale
* @param src source unit scale
*/
@Suppress("UnnecessaryParentheses")
private fun cvt(d: Long, dst: Long, src: Long): Long {
var r: Long
return when {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Project https://github.com/simple-robot/simpler-robot
* Email [email protected]
*
* This file is part of the Simple Robot Library.
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -173,6 +173,7 @@ public actual enum class TimeUnit(private val scale: Long) {
* @param dst result unit scale
* @param src source unit scale
*/
@Suppress("UnnecessaryParentheses")
private fun cvt(d: Long, dst: Long, src: Long): Long {
var r: Long
return when {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public abstract class AbstractContinuousSessionContext<T, R>(coroutineContext: C
* 创建一个 [ContinuousSessionContext] 的基础实现类型。
*/
@JvmName("createContinuousSessionContext")
@Suppress("FunctionNaming")
public fun <T, R> ContinuousSessionContext(coroutineContext: CoroutineContext): ContinuousSessionContext<T, R> =
SimpleContinuousSessionContext(coroutineContext)

Expand Down

0 comments on commit 180a69d

Please sign in to comment.