Skip to content

Commit 6990772

Browse files
committed
lint
1 parent 901a258 commit 6990772

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

agent/agentcontainers/api.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ func (api *API) Routes() http.Handler {
234234
return r
235235
}
236236

237-
func (api *API) handleDisabled(w http.ResponseWriter, r *http.Request) {
237+
func (*API) handleDisabled(w http.ResponseWriter, r *http.Request) {
238238
httpapi.Write(r.Context(), w, http.StatusNotImplemented, codersdk.Response{
239239
Message: "Devcontainers are not enabled in this agent.",
240240
Detail: "Devcontainers are not enabled in this agent.",
241241
})
242242
}
243243

244-
func (api *API) handleDisabledEmptyList(w http.ResponseWriter, r *http.Request) {
244+
func (*API) handleDisabledEmptyList(w http.ResponseWriter, r *http.Request) {
245245
httpapi.Write(r.Context(), w, http.StatusOK, codersdk.WorkspaceAgentListContainersResponse{
246246
Containers: []codersdk.WorkspaceAgentContainer{},
247247
})

agent/agentcontainers/devcontainercli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (l *devcontainerCLILogWriter) Write(p []byte) (n int, err error) {
196196
// interface. It is used when devcontainers are not enabled.
197197
type noopDevcontainerCLI struct{}
198198

199-
func (n *noopDevcontainerCLI) Up(context.Context, string, string, ...DevcontainerCLIUpOptions) (string, error) {
199+
func (*noopDevcontainerCLI) Up(context.Context, string, string, ...DevcontainerCLIUpOptions) (string, error) {
200200
return "", nil
201201
}
202202

0 commit comments

Comments
 (0)