Consistently use if/elseif for switch-like patterns
@@ -89,11 +89,19 @@ end
bind_names_type = function(type_node, st, errors)
local tag = type_node._tag
- if tag == ast.Type.Nil or
- tag == ast.Type.Boolean or
- tag == ast.Type.Integer or
- tag == ast.Type.Float or
- tag == ast.Type.String then
+ if tag == ast.Type.Nil then
+ -- Nothing to do
+
+ elseif tag == ast.Type.Boolean then
+ -- Nothing to do
+
+ elseif tag == ast.Type.Integer then
+ -- Nothing to do
+
+ elseif tag == ast.Type.Float then
+ -- Nothing to do
+
+ elseif tag == ast.Type.String then
-- Nothing to do
elseif tag == ast.Type.Name then
