~dave-cheney/juju-core/122-fix-lp-1301706

Viewing all changes in revision 2550.

  • Committer: Tarmac
  • Author(s): Dave Cheney
  • Date: 2014-04-02 21:10:18 UTC
  • mfrom: (2535.2.2 110-fix-lp-1251076)
  • Revision ID: tarmac-20140402211018-jthi98u9b1if5rpe
[r=dave-cheney],[bug=1251076] Workaround LP 1251076

gccgo appears to get confused and thinks that out[1] is not nil when in fact it is an interface value of type error and value nil.

This workaround solves the problem by leaving error as nil if in fact it was nil and causes no harm for gc because the predicates above assert that if out[1] is not nil, then it is an error type.

https://codereview.appspot.com/83340045/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: