Skip to content

Commit

Permalink
Refactor match expressions to use a catch-all case
Browse files Browse the repository at this point in the history
  • Loading branch information
Linda-Njau committed Nov 21, 2024
1 parent eb4611c commit 35af3fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sail_json_backend/json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,9 @@ let get_mnemonic id args_list =
| Some (mnemonic :: _) when mnemonic = str ->
debug_print ("Mnemonic matched: " ^ str);
Some str
| Some _ -> None
| None -> None
| _ -> None
)
| Some [] -> None
| None -> None
| _ -> None

let process_base_instruction () =
let mnemonics =
Expand Down

0 comments on commit 35af3fd

Please sign in to comment.