Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case statement with ternary or if then causes crash #1743

Closed
andrewroth opened this issue Nov 18, 2022 · 0 comments · Fixed by #1744
Closed

case statement with ternary or if then causes crash #1743

andrewroth opened this issue Nov 18, 2022 · 0 comments · Fixed by #1744

Comments

@andrewroth
Copy link

Background

Brakeman version: 5.4.0
Rails version: 6.1.6.1
Ruby version: ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-darwin17]

Link to Rails application code: Don't have a direct link but example code provided

This was working and started crashing when we updated to brakeman 5.4.0

Issue

I have a view file with

<%=
  case something
  when (if a then b else c end) then 1
  end
%>

as well as

<%=
  case something
  when (a ? b : c) then 1
  end
%>

Other Error

Run Brakeman with --debug to see the full stack trace.

Stack trace:

== Errors ==

Error: undefined method `[]=' for nil:NilClass
Location: /Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:1027:in `block (2 levels) in process_case'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp_processor.rb:452:in `scope'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:107:in `scope'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:1018:in `block in process_case'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp.rb:144:in `block in each_sexp'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp.rb:141:in `each'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp.rb:141:in `each_sexp'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:1016:in `process_case'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:76:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:62:in `block in process_default'
(eval):3:in `map!'
(eval):3:in `map!'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:60:in `process_default'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:78:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:62:in `block in process_default'
(eval):3:in `map!'
(eval):3:in `map!'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:60:in `process_default'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:78:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:50:in `process_safely'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processor.rb:86:in `process_template_alias'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:318:in `block in process_template_data_flows'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:342:in `block in track_progress'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:339:in `each'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:339:in `track_progress'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:316:in `process_template_data_flows'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:61:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman.rb:392:in `scan'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman.rb:86:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:157:in `run_brakeman'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:125:in `regular_report'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:166:in `run_report'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:35:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:20:in `start'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bin/brakeman:10:in `<top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/brakeman:23:in `load'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/brakeman:23:in `<top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli/exec.rb:58:in `load'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli/exec.rb:23:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli.rb:483:in `exec'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli.rb:31:in `dispatch'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli.rb:25:in `start'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/exe/bundle:48:in `block in <top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/exe/bundle:36:in `<top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/bundle:23:in `load'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/bundle:23:in `<main>'

Error: undefined method `[]=' for nil:NilClass
Location: /Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:1027:in `block (2 levels) in process_case'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp_processor.rb:452:in `scope'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:107:in `scope'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:1018:in `block in process_case'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp.rb:144:in `block in each_sexp'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp.rb:141:in `each'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp.rb:141:in `each_sexp'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:1016:in `process_case'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:76:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:62:in `block in process_default'
(eval):3:in `map!'
(eval):3:in `map!'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:60:in `process_default'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:78:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:62:in `block in process_default'
(eval):3:in `map!'
(eval):3:in `map!'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:60:in `process_default'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:78:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:50:in `process_safely'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/lib/render_helper.rb:138:in `process_template'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/controller_alias_processor.rb:194:in `process_template'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/controller_alias_processor.rb:176:in `process_default_render'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/controller_alias_processor.rb:103:in `block in process_defn'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:516:in `block in meth_env'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bundle/ruby/2.7.0/gems/sexp_processor-4.16.1/lib/sexp_processor.rb:452:in `scope'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:513:in `meth_env'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/controller_alias_processor.rb:93:in `process_defn'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:76:in `block in process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:113:in `in_context'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/ruby_parser/bm_sexp_processor.rb:72:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:62:in `block in process_default'
(eval):3:in `map!'
(eval):3:in `map!'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/alias_processor.rb:60:in `process_default'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processors/controller_alias_processor.rb:31:in `process_controller'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/processor.rb:50:in `process_controller_alias'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:281:in `block (2 levels) in process_controller_data_flows'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:280:in `each'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:280:in `block in process_controller_data_flows'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:342:in `block in track_progress'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:339:in `each'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:339:in `track_progress'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:278:in `process_controller_data_flows'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/scanner.rb:67:in `process'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman.rb:392:in `scan'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman.rb:86:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:157:in `run_brakeman'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:125:in `regular_report'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:166:in `run_report'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:35:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/lib/brakeman/commandline.rb:20:in `start'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/brakeman-5.4.0/bin/brakeman:10:in `<top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/brakeman:23:in `load'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/brakeman:23:in `<top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli/exec.rb:58:in `load'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli/exec.rb:58:in `kernel_load'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli/exec.rb:23:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli.rb:483:in `exec'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli.rb:31:in `dispatch'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/cli.rb:25:in `start'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/exe/bundle:48:in `block in <top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/Users/andrew/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/bundler-2.3.12/exe/bundle:36:in `<top (required)>'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/bundle:23:in `load'
/Users/andrew/.asdf/installs/ruby/2.7.6/bin/bundle:23:in `<main>'

No warnings found
@andrewroth andrewroth changed the title case statement with ternary or if in when causes crash case statement with ternary or if then causes crash Nov 20, 2022
Repository owner locked and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant