all repos — homestead @ 20dd619b8605660dac67fa435d711e5f22da3174

Code for my website

ensure reasonable ordering of declarations in source

Alan Pearce
commit

20dd619b8605660dac67fa435d711e5f22da3174

parent

6f41d182abaf1af16fd0cc697abf0f2e9ce54c5c

1 file changed, 7 insertions(+), 7 deletions(-)

changed files
M shared/http/error.goshared/http/error.go
@@ -18,6 +18,13 @@ message string
cause error } +func NewError(message string, code int) httpError { + return httpError{ + code: code, + message: message, + } +} + func (e httpError) Error() string { if e.message == "" { e.message = http.StatusText(e.code)
@@ -40,13 +47,6 @@ }
func (e httpError) Unwrap() error { return e.cause -} - -func NewError(message string, code int) httpError { - return httpError{ - code: code, - message: message, - } } func (e httpError) WithCause(cause error) Error {