c3159e369a
When res is nil, that condition can fall into the 'else' clause. If that happens, we can trigger a bug when we try to read res.code.