Files
coder/agent/ports_unsupported.go
Spike Curtis edeb9bb42a fix: appease linter on darwin (#11154)
Fixing up some linting errors that show up on Darwin, but not in CI.
2023-12-12 17:02:28 +04:00

13 lines
446 B
Go

//go:build !linux && !(windows && amd64)
package agent
import "github.com/coder/coder/v2/codersdk"
func (*listeningPortsHandler) getListeningPorts() ([]codersdk.WorkspaceAgentListeningPort, error) {
// Can't scan for ports on non-linux or non-windows_amd64 systems at the
// moment. The UI will not show any "no ports found" message to the user, so
// the user won't suspect a thing.
return []codersdk.WorkspaceAgentListeningPort{}, nil
}