Closed ftamhar closed 10 months ago
I noticed that sometimes it does not work too.
This check only triggers if the previous line follows the , err :=
pattern - note how it requires the token :=
, it doesn't accept =
. I agree that that's an unnecessary restriction, and we should make the formatter slightly more aggressive.
If my code like this
and I run
gofumpt -l -w .
, my expected result is like thisbut the result is like the first code snippet.
How do I achieve the results I expect?