Skip to content

Commit 343ab90

Browse files
committed
fix lint
1 parent 3c9ef93 commit 343ab90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/wrappers/mock/pr-mock.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"github.com/pkg/errors"
66
)
77

8+
const prCommentSuccess = "PR comment created successfully."
9+
810
type PRMockWrapper struct {
911
}
1012

@@ -15,15 +17,15 @@ func (pr *PRMockWrapper) PostPRDecoration(model interface{}) (
1517
) {
1618
switch model.(type) {
1719
case *wrappers.PRModel:
18-
return "PR comment created successfully.", nil, nil
20+
return prCommentSuccess, nil, nil
1921
case *wrappers.GitlabPRModel:
2022
return "MR comment created successfully.", nil, nil
2123
case *wrappers.BitbucketCloudPRModel:
2224
return "Bitbucket Cloud PR comment created successfully.", nil, nil
2325
case *wrappers.BitbucketServerPRModel:
2426
return "Bitbucket Server PR comment created successfully.", nil, nil
2527
case *wrappers.AzurePRModel:
26-
return "PR comment created successfully.", nil, nil
28+
return prCommentSuccess, nil, nil
2729

2830
default:
2931
return "", nil, errors.New("unsupported model type")

0 commit comments

Comments
 (0)