Fix NON_EXHAUSTIVE_WHEN_STATEMENT warnings in project code

This commit is contained in:
Dmitriy Novozhilov
2021-07-13 15:48:59 +03:00
committed by teamcityserver
parent a6edd852ff
commit f3116cb64a
35 changed files with 75 additions and 27 deletions
@@ -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)
}
}
}