Skip to content

Commit 450b7c5

Browse files
committed
minor cleanup
1 parent 74ce502 commit 450b7c5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/chatops/controller.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def list
2727
end
2828

2929
def process(*args)
30-
setup_params
30+
setup_params!
3131

3232
if params[:chatop].present?
3333
params[:action] = params[:chatop]
@@ -49,7 +49,7 @@ def execute_chatop
4949

5050
protected
5151

52-
def setup_params
52+
def setup_params!
5353
json_body.each do |key, value|
5454
next if params.has_key? key
5555
params[key] = value
@@ -65,8 +65,7 @@ def setup_params
6565
user
6666
]
6767

68-
chatop_name =
69-
if params[:chatop].present?
68+
chatop_name = if params[:chatop].present?
7069
params[:chatop].to_sym
7170
elsif params[:action].present?
7271
params[:action].to_sym

0 commit comments

Comments
 (0)