mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-20 15:07:03 +00:00
Minor code aesthetic improvements, based on vet+fmt+lint
This patch is the result of running go vet, go fmt -s and the linter, and fixing some of the things they noted/suggested. There shouldn't be any significant logic changes, it's mostly readability improvements.
This commit is contained in:
@@ -17,10 +17,10 @@ func TestIsPermanent(t *testing.T) {
|
||||
err error
|
||||
permanent bool
|
||||
}{
|
||||
{&textproto.Error{499, ""}, false},
|
||||
{&textproto.Error{500, ""}, true},
|
||||
{&textproto.Error{599, ""}, true},
|
||||
{&textproto.Error{600, ""}, false},
|
||||
{&textproto.Error{Code: 499, Msg: ""}, false},
|
||||
{&textproto.Error{Code: 500, Msg: ""}, true},
|
||||
{&textproto.Error{Code: 599, Msg: ""}, true},
|
||||
{&textproto.Error{Code: 600, Msg: ""}, false},
|
||||
{fmt.Errorf("something"), false},
|
||||
}
|
||||
for _, c := range cases {
|
||||
|
||||
Reference in New Issue
Block a user