-
Committer:
Tarmac
-
Author(s):
Roger Peppe
-
Date:
2013-08-28 16:31:33 UTC
-
mfrom:
(1718.1.1 378-notifyworker-fix)
-
Revision ID:
tarmac-20130828163133-wwgtnetwab8c65lh
[r=rogpeppe] api/watcher: return interface
This means that worker implementations cannot
return a nil value masquerading as a non-nil
interface. It's difficult to know how to test
this properly without mocking the API.
Also couldn't resist a drive-by simplification of the
worker MustErr test logic.
https://codereview.appspot.com/13326044/