Skip to content

Commit

Permalink
chore: use getD
Browse files Browse the repository at this point in the history
  • Loading branch information
hargoniX committed Jan 21, 2025
1 parent 170f3d1 commit fb9feb1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ partial def structuresPass : Pass where
return false
else
let some const := decl.type.getAppFn.constName? | return false
let some ofInterest := interesting.get? const | return false
return ofInterest
return interesting.getD const false
match goals with
| [goal] => return goal
| _ => throwError "structures preprocessor generated more than 1 goal"
Expand Down

0 comments on commit fb9feb1

Please sign in to comment.