Skip to content

Commit a049673

Browse files
committed
Fix linting: Remove unused validateSha field from PushCommand struct
1 parent 5cdbed7 commit a049673

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

artifactory/commands/container/containermanagercommand.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type ContainerCommand struct {
1111
skipLogin bool
1212
cmdParams []string
1313
containerManagerType container.ContainerManagerType
14+
validateSha bool
1415
}
1516

1617
func NewContainerManagerCommand(containerManagerType container.ContainerManagerType) *ContainerCommand {
@@ -29,6 +30,15 @@ func (cm *ContainerCommand) SetCmdParams(cmdParams []string) *ContainerCommand {
2930
return cm
3031
}
3132

33+
func (cm *ContainerCommand) SetValidateSha(validateSha bool) *ContainerCommand {
34+
cm.validateSha = validateSha
35+
return cm
36+
}
37+
38+
func (cm *ContainerCommand) IsValidateSha() bool {
39+
return cm.validateSha
40+
}
41+
3242
func (cm *ContainerCommand) PerformLogin(serverDetails *config.ServerDetails, containerManagerType container.ContainerManagerType) error {
3343
if !cm.skipLogin {
3444
// Exclude refreshable tokens when working with external tools (build tools, curl, etc)

artifactory/commands/container/push.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type PushCommand struct {
1919
ContainerCommand
2020
threads int
2121
detailedSummary bool
22-
validateSha bool
2322
result *commandsutils.Result
2423
}
2524

0 commit comments

Comments
 (0)