Skip to content

Commit

Permalink
Merge pull request #3310 from mingshewhe/bug_3288_1.2
Browse files Browse the repository at this point in the history
fix: ScmFactory对svn的region字段不合理的使用 #3288
  • Loading branch information
irwinsun authored Dec 17, 2020
2 parents d836dca + b6e4651 commit 7dcca23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@ object ScmFactory {
): IScm {
return when (type) {
ScmType.CODE_SVN -> {
if (region == null) {
throw TaskExecuteException(
errorCode = ErrorCode.USER_RESOURCE_NOT_FOUND,
errorType = ErrorType.USER,
errorMsg = "The svn region is null"
)
}

if (userName == null) {
throw TaskExecuteException(
Expand Down Expand Up @@ -168,4 +161,4 @@ object ScmFactory {
)
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ object ScmOauthFactory {
): IScm {
return when (type) {
ScmType.CODE_SVN -> {
if (region == null) {
throw TaskExecuteException(
errorCode = ErrorCode.USER_INPUT_INVAILD,
errorType = ErrorType.USER,
errorMsg = "The svn region is null"
)
}

if (userName == null) {
throw TaskExecuteException(
Expand Down Expand Up @@ -126,4 +119,4 @@ object ScmOauthFactory {
)
}
}
}
}

0 comments on commit 7dcca23

Please sign in to comment.