lint: spell fix

This commit is contained in:
Umputun
2018-09-15 14:18:28 -05:00
parent e610657e36
commit be00380b5a
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -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)
+1 -4
View File
@@ -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)