Skip to content

Commit

Permalink
remove yields of defer.returnValue
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Feb 3, 2013
1 parent 557ec3b commit f06257e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/buildbot/data/builds.py
Expand Up @@ -61,7 +61,7 @@ def get(self, options, kwargs):
if 'builderid' in kwargs:
if not dbdict or dbdict['builderid'] != kwargs['builderid']:
return
yield defer.returnValue((yield self.db2data(dbdict))
defer.returnValue((yield self.db2data(dbdict))
if dbdict else None)


Expand All @@ -79,7 +79,7 @@ def get(self, options, kwargs):
builds = yield self.master.db.builds.getBuilds(
builderid=kwargs.get('builderid'),
buildrequestid=kwargs.get('buildrequestid'))
yield defer.returnValue(
defer.returnValue(
[ (yield self.db2data(schdict)) for schdict in builds ])

def startConsuming(self, callback, options, kwargs):
Expand Down

0 comments on commit f06257e

Please sign in to comment.