Skip to content

Commit

Permalink
Fix nil check warning
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed May 8, 2024
1 parent 591b350 commit 9b3d636
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/gesture/core/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ end
--- @return GestureActionContext
function State.action_context(self)
local point = self.view:current_point()
assert(point ~= nil, "bug: invalid state:action_context call")
return {
last_position = {
point.y,
Expand Down

0 comments on commit 9b3d636

Please sign in to comment.