go fmt reformatting
diff --git a/reauth_test.go b/reauth_test.go
index e6ccb17..e3501b8 100644
--- a/reauth_test.go
+++ b/reauth_test.go
@@ -1,8 +1,8 @@
package gophercloud
import (
- "testing"
"github.com/racker/perigee"
+ "testing"
)
// This reauth-handler does nothing, and returns no error.
@@ -18,7 +18,7 @@
calls++
return &perigee.UnexpectedResponseCodeError{
Expected: []int{204},
- Actual: 404,
+ Actual: 404,
}
})
@@ -44,7 +44,7 @@
calls++
return &perigee.UnexpectedResponseCodeError{
Expected: []int{204},
- Actual: 401,
+ Actual: 401,
}
})
@@ -67,7 +67,7 @@
c.WithReauth(nil, func() error {
return &perigee.UnexpectedResponseCodeError{
Expected: []int{204},
- Actual: 401,
+ Actual: 401,
}
})
@@ -77,7 +77,8 @@
}
}
-type MyError struct {}
+type MyError struct{}
+
func (*MyError) Error() string {
return "MyError instance"
}
@@ -90,7 +91,7 @@
err := c.WithReauth(nil, func() error {
return &perigee.UnexpectedResponseCodeError{
Expected: []int{204},
- Actual: 401,
+ Actual: 401,
}
})
@@ -100,7 +101,8 @@
}
}
-type MyAccess struct {}
+type MyAccess struct{}
+
func (my *MyAccess) FirstEndpointUrlByCriteria(ApiCriteria) string {
return ""
}
@@ -125,7 +127,7 @@
c.WithReauth(fakeAccess, func() error {
return &perigee.UnexpectedResponseCodeError{
Expected: []int{204},
- Actual: 401,
+ Actual: 401,
}
})
}