stuphlabs / pullcord

A reverse proxy that allows scaling down a cloud service to zero servers without sacrificing (eventual) availability.
GNU Affero General Public License v3.0
4 stars 2 forks source link

Not using fmt.Errorf everywhere #163

Closed proidiot closed 5 years ago

proidiot commented 5 years ago

Golint doesn't like using fmt.Sprintf inside errors.New, and while many of those errors.New might be from gone instead of native, there wouldn't be any significant advantage to using gone errors if they are being constructed based on the output of fmt.Sprintf anyway, so may as well just use fmt.Errorf like it wants.