Skip to content

Commit ab71a24

Browse files
committed
Go fmt
1 parent b56ee2e commit ab71a24

6 files changed

Lines changed: 11 additions & 13 deletions

File tree

cmd/nabsl-request/approve.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,3 @@ func (o *ApproveOptions) Run(c *cobra.Command, f client.Factory) error {
140140

141141
return nil
142142
}
143-

cmd/nabsl-request/reject.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,3 @@ func (o *RejectOptions) Run(c *cobra.Command, f client.Factory) error {
142142

143143
return nil
144144
}
145-

cmd/non-admin/backup/backup_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func TestNonAdminBackupCreateFlags(t *testing.T) {
144144
"--include-resources",
145145
"--exclude-resources",
146146
"--labels",
147-
"--annotations",
147+
"--annotations",
148148
"--wait",
149149
"--force",
150150
"--assume-yes",
@@ -154,8 +154,8 @@ func TestNonAdminBackupCreateFlags(t *testing.T) {
154154
"--or-selector",
155155
}
156156

157-
testutil.TestHelpCommand(t, binaryPath,
158-
[]string{"nonadmin", "backup", "create", "--help"},
157+
testutil.TestHelpCommand(t, binaryPath,
158+
[]string{"nonadmin", "backup", "create", "--help"},
159159
expectedFlags)
160160
})
161161
}
@@ -181,7 +181,7 @@ func TestNonAdminBackupExamples(t *testing.T) {
181181
t.Run("main backup help shows subcommands", func(t *testing.T) {
182182
expectedSubcommands := []string{
183183
"create",
184-
"delete",
184+
"delete",
185185
"describe",
186186
"get",
187187
"logs",
@@ -258,4 +258,4 @@ func TestNonAdminBackupCommandStructure(t *testing.T) {
258258
testutil.TestHelpCommand(t, binaryPath, []string{"na", "--help"}, []string{cmd})
259259
}
260260
})
261-
}
261+
}

cmd/shared/factories.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func ReadVeleroClientConfig() (*ClientConfig, error) {
6565
}
6666

6767
configPath := filepath.Join(homeDir, ".config", "velero", "config.json")
68-
68+
6969
// Check if config file exists
7070
if _, err := os.Stat(configPath); os.IsNotExist(err) {
7171
return &ClientConfig{}, nil // Return empty config if file doesn't exist
@@ -82,4 +82,4 @@ func ReadVeleroClientConfig() (*ClientConfig, error) {
8282
}
8383

8484
return &config, nil
85-
}
85+
}

cmd/shared/nabsl_requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ func FindNABSLRequestByNameOrUUID(ctx context.Context, client kbclient.WithWatch
5959
}
6060

6161
return "", fmt.Errorf("request for NABSL %q not found", nameOrUUID)
62-
}
62+
}

cmd/shared/test_helpers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ func TestClientConfigIntegrationPattern(t *testing.T, testNamespace string, comm
6363
type ClientConfigTestCommands struct {
6464
Name string
6565
Commands [][]string
66-
TestSetup func(t *testing.T, binaryPath string) // Optional additional setup
67-
Namespace string // Namespace to configure
66+
TestSetup func(t *testing.T, binaryPath string) // Optional additional setup
67+
Namespace string // Namespace to configure
6868
ValidateFunc func(t *testing.T, cmd []string, output string) // Optional output validation
6969
}
7070

@@ -80,4 +80,4 @@ func RunClientConfigTests(t *testing.T, testGroups []ClientConfigTestCommands) {
8080
TestClientConfigIntegrationPattern(t, namespace, group.Commands, group.ValidateFunc)
8181
})
8282
}
83-
}
83+
}

0 commit comments

Comments
 (0)