Skip to content

Commit

Permalink
Fix some style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Feb 18, 2024
1 parent 7525cc0 commit 6de2024
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public ResponseEntity<?> downloadSpecific(
final Version version = this.versions.findCorrectVersion(project._id(), versionName).orElseThrow(VersionNotFound::new);
final Build build = this.builds.findByProjectAndVersionAndNumber(project._id(), version._id(), buildNumber).orElseThrow(BuildNotFound::new);

Build.Download download = build.downloads().get(downloadName);
final Build.Download download = build.downloads().get(downloadName);
if (download == null) {
throw new DownloadNotFound();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.Aggregation;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.Aggregation;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
Expand All @@ -46,8 +45,8 @@ public interface VersionCollection extends MongoRepository<Version, ObjectId> {
default Optional<Version> findCorrectVersion(final ObjectId project, final String name) {
if ("latest".equals(name)) {
// when project exists, it has to have at least one version
return Optional.of(findLatestVersion(project));
return Optional.of(this.findLatestVersion(project));
}
return findByProjectAndName(project, name);
return this.findByProjectAndName(project, name);
}
}

0 comments on commit 6de2024

Please sign in to comment.