-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Labels
Priority: LowA problem that causes minor errors—such as formatting or display problemsA problem that causes minor errors—such as formatting or display problemsbugSomething isn't workingSomething isn't working
Description
In StopScanArtifactCommand, projectName is redeclared inside the else block,
which causes variable shadowing.
harbor-cli/cmd/harbor/root/artifact/scan.go
Lines 91 to 101 in 58a7157
| } else { | |
| var projectName string | |
| projectName, err = prompt.GetProjectNameFromUser() | |
| if err != nil { | |
| log.Errorf("failed to get project name: %v", utils.ParseHarborErrorMsg(err)) | |
| } | |
| repoName = prompt.GetRepoNameFromUser(projectName) | |
| reference = prompt.GetReferenceFromUser(repoName, projectName) | |
| } | |
| err = api.StopScanArtifact(projectName, repoName, reference) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority: LowA problem that causes minor errors—such as formatting or display problemsA problem that causes minor errors—such as formatting or display problemsbugSomething isn't workingSomething isn't working