Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6990772

Browse files
committed
lint
1 parent901a258 commit6990772

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎agent/agentcontainers/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ func (api *API) Routes() http.Handler {
234234
returnr
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

Lines changed: 1 addition & 1 deletion
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
typenoopDevcontainerCLIstruct{}
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)

[8]ページ先頭

©2009-2025 Movatter.jp