Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Keshav Kumar committed Jan 31, 2024
1 parent 9ad16ba commit c6af1d4
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,16 @@ public SCMSourceCriteria.Probe create(
// This is a hack to get the path with namespace of source project for forked
// mrs
try {
originProjectPath = gitLabApi
.getProjectApi()
.getProject(mr.getSourceProjectId())
.getPathWithNamespace();
forkMrSources.put(mr.getSourceProjectId(), originProjectPath);
} catch(GitLabApiException e) {
originProjectPath = gitLabApi
.getProjectApi()
.getProject(mr.getSourceProjectId())
.getPathWithNamespace();
forkMrSources.put(mr.getSourceProjectId(), originProjectPath);
} catch (GitLabApiException e) {
if (e.getHttpStatus() == 404) {
LOGGER.log(Level.WARNING, "Ignoring this MR, Please check if fork repo have right permission");
LOGGER.log(
Level.WARNING,
"Ignoring this MR, Please check if fork repo have right permission");
} else {
throw e;
}
Expand Down

0 comments on commit c6af1d4

Please sign in to comment.