Skip to content

Commit 27e0980

Browse files
committed
Fix diff
1 parent bbd1f41 commit 27e0980

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apptrust/commands/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func ParseMapFlag(flagValue string) (map[string]string, error) {
7171
return result, nil
7272
}
7373

74-
// ValidateEnumFlag validates that a flag value is in the list of allowed values.parseSourceVersions
74+
// ValidateEnumFlag validates that a flag value is in the list of allowed values.
7575
// If the value is empty, returns the default value.
7676
// Otherwise, returns an error if the value is not in the allowed values.
7777
func ValidateEnumFlag(flagName, value string, defaultValue string, allowedValues []string) (string, error) {

apptrust/service/versions/version_service_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ func TestCreateAppVersion(t *testing.T) {
5757
for _, tt := range tests {
5858
t.Run(tt.name, func(t *testing.T) {
5959
mockHttpClient := mockhttp.NewMockApptrustHttpClient(ctrl)
60-
// Expect the correct endpoint with application key
6160
mockHttpClient.EXPECT().Post("/v1/applications/test-app/versions/", tt.request, nil).
6261
Return(tt.mockResponse, []byte(tt.mockResponseBody), tt.mockError).Times(1)
6362

0 commit comments

Comments
 (0)