Open
Description
Here is a diff example of bare return rewrite when using goreturns -b -i -l -w .
:
if err != nil {
- return
+ return output,
+
+ // Processing output
+ err
}
- // Processing output
if updateCache {
expected result:
if err != nil {
- return
+ return output, err
}
// Processing output
if updateCache {
It is interesting that the rewrite escapes the {...}
block.
Metadata
Metadata
Assignees
Labels
No labels