Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code
This commit is contained in:
committed by
teamcityserver
parent
a6edd852ff
commit
f3116cb64a
@@ -27,6 +27,7 @@ class WasmIrToBinary(outputStream: OutputStream, val module: WasmModule) {
|
||||
when (it) {
|
||||
is WasmStructDeclaration -> appendStructTypeDeclaration(it)
|
||||
is WasmArrayDeclaration -> appendArrayTypeDeclaration(it)
|
||||
is WasmFunctionType -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,11 +130,9 @@ data class SpecTest(
|
||||
|
||||
private fun runSpecTest(specTest: SpecTest, testDir: File, wastFile: File, wabtOptions: List<String>) {
|
||||
for (command in specTest.commands) {
|
||||
when (command) {
|
||||
is SpecTest.Command.Module -> {
|
||||
val wasmFile = File(testDir, command.filename)
|
||||
testWasmFile(wasmFile, testDir.name)
|
||||
}
|
||||
if (command is SpecTest.Command.Module) {
|
||||
val wasmFile = File(testDir, command.filename)
|
||||
testWasmFile(wasmFile, testDir.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user