Skip to content

Commit

Permalink
silence rake warnings about unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jm3 authored and Tyler Mauthe committed Feb 21, 2018
1 parent 353415c commit 87ee353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/dashing/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def format_event(body, name=nil)
end

def latest_events
settings.history.inject("") do |str, (id, body)|
settings.history.inject("") do |str, (_id, body)|
str << body
end
end
Expand Down
6 changes: 3 additions & 3 deletions lib/dashing/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def new(name)
desc "generate (widget/dashboard/job) NAME", "Creates a new widget, dashboard, or job."
def generate(type, name)
public_send("generate_#{type}".to_sym, name)
rescue NoMethodError => e
rescue NoMethodError => _e
puts "Invalid generator. Either use widget, dashboard, or job"
end

Expand All @@ -50,7 +50,7 @@ def install(gist_id, *args)
print set_color("and run ", :yellow)
print set_color("bundle install ", :yellow, :bold)
say set_color("if needed. More information for this widget can be found at #{public_url}", :yellow)
rescue OpenURI::HTTPError => http_error
rescue OpenURI::HTTPError => _http_error
say set_color("Could not find gist at #{public_url}"), :red
end

Expand Down Expand Up @@ -88,7 +88,7 @@ def job(name, auth_token = "")
def run_command(command)
begin
system(command)
rescue Interrupt => e
rescue Interrupt => _e
say "Exiting..."
end
end
Expand Down

0 comments on commit 87ee353

Please sign in to comment.