Skip to content

Commit

Permalink
fix(graalvm): suppress false positive linter error.
Browse files Browse the repository at this point in the history
Signed-off-by: Dario Valdespino <[email protected]>
  • Loading branch information
darvld authored and sgammon committed Jun 18, 2024
1 parent f4b9a31 commit 2342926
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private const val FILE_SYMBOL = "${BUFFER_MODULE_SYMBOL_ROOT}File"
return moduleMembers.binarySearch(key) >= 0
}

@Suppress("MagicNumber")
override fun getMember(key: String?): Any? = when (key) {
"atob" -> ProxyExecutable { atob(it.singleOrNull() ?: error("Expected exactly 1 argument for 'atob'")) }
"btoa" -> ProxyExecutable { btoa(it.singleOrNull() ?: error("Expected exactly 1 argument for 'btoa'")) }
Expand Down

0 comments on commit 2342926

Please sign in to comment.