提交 b5b56588 编写于 作者: P Patrick Derichs

Separate conditions to increase readability

上级 932a9a0c
......@@ -36,7 +36,8 @@ class NotesFinder
target_id = @params[:target_id]
target_iid = @params[:target_iid]
return @target = nil unless target_type && (target_id || target_iid)
return @target = nil unless target_type
return @target = nil unless (target_id || target_iid)
@target =
if target_type == "commit"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册