Skip to content

Commit

Permalink
Avoid to warning for variable initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 14, 2024
1 parent a27bb8e commit f4d6eeb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rake/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ def add_loader(ext, loader)

# Application options from the command line
def options
return @options if @options

@options = Struct.new(
@options ||= Struct.new(
:always_multitask, :backtrace, :build_all, :dryrun,
:ignore_deprecate, :ignore_system, :job_stats, :load_system,
:nosearch, :rakelib, :show_all_tasks, :show_prereqs,
Expand Down

0 comments on commit f4d6eeb

Please sign in to comment.