aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorgi Kirilov <in.the@repo>2020-05-20 20:13:10 +0300
committerGeorgi Kirilov <in.the@repo>2020-05-20 20:13:10 +0300
commit65533462ed4018d4c14e6c919bcdb8209b755ad2 (patch)
treeada102d2c32b7de4e70edcb606cd935957ff5b34
parentd8b1d482541cc05d3ff664a2ba352daf3d2960ac (diff)
downloadvis-toggler-65533462ed4018d4c14e6c919bcdb8209b755ad2.tar.gz
remove unnecessary nil check
-rw-r--r--init.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 5e5b86b..817279c 100644
--- a/init.lua
+++ b/init.lua
@@ -24,10 +24,8 @@ local count
local char_next = 17
local function at_or_after(_, _, pos, start, finish, is_number)
- if start and finish then
- if pos >= start and pos < finish or is_number and pos < start then
- return true, start, finish
- end
+ if pos >= start and pos < finish or is_number and pos < start then
+ return true, start, finish
end
end