4 ms·
Formatting the if onto a single line gets you most of the way there. if err != nil { return err }
by ibraheemdev 3y ago
Formatting the if onto a single line gets you most of the way there.
if err != nil { return err }
- emmanueloga_ 3y agoNot a bad idea actually! I would be happy with this too! It would require changing go's fmt to allow inline code in braces if it consists of a single return... that would be backward compatible with other code too (just make fmt not revert the previous style to a single line).