linting and fixing review feedback

This commit is contained in:
max furman 2022-09-20 22:12:08 -07:00
parent 7c5e5b2b87
commit ffff9af323
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -1135,7 +1135,8 @@ retry:
}
var check api.SSHCheckPrincipalResponse
if err := readJSON(resp.Body, &check); err != nil {
return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response", u)
return nil, errs.Wrapf(http.StatusInternalServerError, err, "error reading %s response",
[]any{u, errs.WithMessage("Failed to parse response from /ssh/check-host endpoint")}...)
}
return &check, nil
}

View file

@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"html"
"log"
"math/rand"
"net/http"
"os"
@ -179,7 +180,7 @@ $ step-ca --context=mybiz --password-file ./password.txt
Addr: debugProfAddr,
ReadHeaderTimeout: 15 * time.Second,
}
srv.ListenAndServe()
log.Println(srv.ListenAndServe())
}()
}