Skip to content

Commit

Permalink
[api] Simplify check_action_target method
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 19, 2015
1 parent e11b651 commit 872ac3a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/api/app/mixins/request_source_diff.rb
Expand Up @@ -115,11 +115,9 @@ def overwrite_target_by_link(spkg)

# check if the action is the same target
def check_action_target(other)
if action.source_project == other.source_project and
@target_package == other.source_package and
action.target_project == other.target_project
return true
end
action.source_project == other.source_project &&
@target_package == other.source_package &&
action.target_project == other.target_project
end
end

Expand Down

0 comments on commit 872ac3a

Please sign in to comment.