Skip to content

Commit

Permalink
Only set isPrepared to true after it really is prepared (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk authored Jun 5, 2022
1 parent bcd1679 commit 32c7e02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public final class TreeSitterLanguage {
/// If the language haven't been explicitly prepared, Runestone will automatically do it before it's used.
public func prepare() {
if !isPrepared {
isPrepared = true
_internalLanguage = TreeSitterInternalLanguage(self)
isPrepared = true
}
}
}
Expand Down

0 comments on commit 32c7e02

Please sign in to comment.