Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 171a675

Browse files
committed
Address PR comments
1 parent 59de7a0 commit 171a675

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

coderd/csp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ type cspViolation struct {
1414
Report map[string]interface{} `json:"csp-report"`
1515
}
1616

17+
// logReportCSPViolations will log all reported csp violations.
18+
//
1719
// @Summary Report CSP violations
1820
// @ID report-csp-violations
1921
// @Security CoderSessionToken
@@ -23,8 +25,6 @@ type cspViolation struct {
2325
// @Param request body cspViolation true "Violation report"
2426
// @Success 200
2527
// @Router /csp/reports [post]
26-
//
27-
// logReportCSPViolations will log all reported csp violations.
2828
func (api *API) logReportCSPViolations(rw http.ResponseWriter, r *http.Request) {
2929
ctx := r.Context()
3030
var v cspViolation

codersdk/updatecheck.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ type UpdateCheckResponse struct {
1616
URL string `json:"url"`
1717
}
1818

19-
// UpdateCheck returns information about the latest release version of Coder and whether or not the server is running the latest release.
19+
// UpdateCheck returns information about the latest release version of
20+
// Coder and whether or not the server is running the latest release.
2021
func (c *Client) UpdateCheck(ctx context.Context) (UpdateCheckResponse, error) {
2122
res, err := c.Request(ctx, http.MethodGet, "/api/v2/updatecheck", nil)
2223
if err != nil {

0 commit comments

Comments
 (0)