This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 82a52d5b authored by Michael Breu's avatar Michael Breu
Browse files

Fixing PMD and pages

parent 07184d00
2 merge requests!222Bringing the december release into production,!215Resolve "Relevance Ranking in Metadata"
# docs
Sphinx==3.2.1
sphinx-rtd-theme==0.5.0
Sphinx==7.1.2
sphinx-rtd-theme==2.0.0
......@@ -148,7 +148,10 @@ public class GitlabService {
RepositoryFile file;
try (GitLabApi gitLabApi = gitLabRepository.getGitLabApi(tokenProvider.getGitLabAccessInfo());) {
if (exercise.getFile().getCommit_id() != null) {
if (exercise.getFile().getCommit_id() == null) {
log.warn("commit_id must not be null for {}", exerciseId);
return null;
} else {
file =
gitLabApi
.getRepositoryFileApi()
......@@ -158,9 +161,6 @@ public class GitlabService {
exercise.getFile().getCommit_id()
);
return new ByteArrayInputStream(file.getDecodedContentAsBytes());
} else {
log.warn("commit_id must not be null for {}", exerciseId);
return null;
}
} catch (GitLabApiException e) {
log.warn(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment