Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
59002: sql: don't overwrite ctx with nil on failure r=yuzefovich a=asubiotto SetupLocalSyncFlow would return a nil ctx with an error in setupFlows if an error occurred. The previous version would overwrite a ctx in the outer scope just to return it. This commit no longer overwrites ctx and simply returns the new ctx when there is no error. On master, this nil ctx would not have any consequences although this commit is good hygiene, but 20.2 uses this ctx in a defer, which would cause a panic. Release note: None (no panic present on master) Co-authored-by: Alfonso Subiotto Marques <[email protected]>
- Loading branch information