lint: spell fix
This commit is contained in:
@@ -51,7 +51,7 @@ func (d *DevAuthServer) Run() {
|
||||
switch {
|
||||
|
||||
case strings.HasPrefix(r.URL.Path, "/login/oauth/authorize"):
|
||||
// first time it will be called without username and will ask for onw
|
||||
// first time it will be called without username and will ask for one
|
||||
if !d.nonInteractive && (r.ParseForm() != nil || r.Form.Get("username") == "") {
|
||||
if _, err = w.Write([]byte(fmt.Sprintf(devUserForm, r.URL.RawQuery))); err != nil {
|
||||
log.Printf("[WARN] can't write, %s", err)
|
||||
|
||||
@@ -40,10 +40,7 @@ func TestMongoStore_Get(t *testing.T) {
|
||||
if e1 := coll.Insert(recs[0]); e1 != nil {
|
||||
return e1
|
||||
}
|
||||
if e2 := coll.Insert(recs[1]); e2 != nil {
|
||||
return e2
|
||||
}
|
||||
return nil
|
||||
return coll.Insert(recs[1])
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user