Skip to content

Commit

Permalink
Use one line if to determine atomic versus listed hda agents
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 1, 2016
1 parent bccf3d5 commit bd194a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3306,10 +3306,7 @@ def to_hda_agent( self, multiple=False ):
if multiple is False:
break
if len( rval ) > 0:
if multiple:
return rval
else:
return rval[ 0 ]
return rval if multiple else rval[ 0 ]

def to_dict( self, view='collection' ):
dict_value = dict(
Expand Down

0 comments on commit bd194a8

Please sign in to comment.