Skip to content

Commit 6681fda

Browse files
committed
Remove single-use variable
1 parent 9bc08a7 commit 6681fda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/slack/web/api/mixins/ids.id.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ def id_for(key:, name:, prefix:, enum_method:, list_method:, options: {})
1515
end
1616
end
1717

18-
not_found_error = "#{key}_not_found"
19-
raise Slack::Web::Api::Errors::SlackError, not_found_error
18+
raise Slack::Web::Api::Errors::SlackError, "#{key}_not_found"
2019
end
2120
end
2221
end

0 commit comments

Comments
 (0)