mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-04 21:56:59 +08:00
Suppress false positive warnings
This commit is contained in:
parent
50289924fe
commit
5310e19861
@ -46,6 +46,7 @@ expect fun localIpAddress(): String
|
||||
*/
|
||||
expect val Http: HttpClient
|
||||
|
||||
@Suppress("DuplicatedCode") // false positive. `this` is not the same for `List<Byte>` and `ByteArray`
|
||||
internal fun ByteArray.checkOffsetAndLength(offset: Int, length: Int) {
|
||||
require(offset >= 0) { "offset shouldn't be negative: $offset" }
|
||||
require(length >= 0) { "length shouldn't be negative: $length" }
|
||||
|
Loading…
Reference in New Issue
Block a user