class ERBLint::Linters::MigrateDeprecatedFlashArguments
def maybe_close_block(code)
def maybe_close_block(code) match = code.match(BLOCK_EXPR) return code unless match if match.captures[0].strip == "do" "#{code}; end" else "#{code} }" end end
def maybe_close_block(code) match = code.match(BLOCK_EXPR) return code unless match if match.captures[0].strip == "do" "#{code}; end" else "#{code} }" end end