Skip to content

Commit 746f5c5

Browse files
committed
join function headers
1 parent 084ce92 commit 746f5c5

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

api/workspace.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ func (c *Client) SetEnvVarOnWorkspace(workspaceId int, envVars map[string]string
5050
// Waits for a given workspace to be running.
5151
//
5252
// Returns [TimedOut] error if the workspace does not become running in time.
53-
func WaitForWorkspaceRunning(
54-
client *Client,
55-
workspace *Workspace,
56-
opts WaitForWorkspaceRunningOptions,
57-
) error {
53+
func WaitForWorkspaceRunning(client *Client, workspace *Workspace, opts WaitForWorkspaceRunningOptions) error {
5854
timeout := opts.Timeout
5955
if timeout == 0 {
6056
timeout = 20 * time.Minute
@@ -96,10 +92,7 @@ type DeployWorkspaceArgs struct {
9692
// Deploys a workspace with the given configuration.
9793
//
9894
// Returns [TimedOut] error if the timeout is reached
99-
func DeployWorkspace(
100-
client Client,
101-
args DeployWorkspaceArgs,
102-
) error {
95+
func DeployWorkspace(client Client, args DeployWorkspaceArgs) error {
10396
workspace, err := client.CreateWorkspace(CreateWorkspaceArgs{
10497
TeamId: args.TeamId,
10598
Name: args.Name,

pkg/cs/util.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ func GetRoleName(role int) string {
103103
//
104104
// Returns [NotFound] if no plan with the given Id could be found
105105
// Returns [Duplicated] if no plan with the given Id could be found
106-
func TeamIdByName(
107-
client *api.Client,
108-
name string,
109-
) (api.Team, error) {
106+
func TeamIdByName(client *api.Client, name string) (api.Team, error) {
110107
teams, err := client.ListTeams()
111108
if err != nil {
112109
return api.Team{}, err
@@ -133,10 +130,7 @@ func TeamIdByName(
133130
// Fetches the workspace plan for a given name.
134131
//
135132
// Returns [NotFound] if no plan with the given Id could be found
136-
func PlanByName(
137-
client *api.Client,
138-
name string,
139-
) (api.WorkspacePlan, error) {
133+
func PlanByName(client *api.Client, name string) (api.WorkspacePlan, error) {
140134
plans, err := client.ListWorkspacePlans()
141135
if err != nil {
142136
return api.WorkspacePlan{}, err

0 commit comments

Comments
 (0)