Skip to content

Commit

Permalink
refactor: minor edits for linter and compile warnings in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Feb 1, 2024
1 parent a16a763 commit 5301657
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/silo/common/data_version.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using silo::DataVersion;

TEST(DataVersion, shouldMineDataVersionFromUnixTime) {
const auto mined_version = DataVersion::mineDataVersion();
EXPECT_EQ(mined_version.toString().size(), 10);
EXPECT_EQ(mined_version.toString().size(), 10UL);
EXPECT_EQ(mined_version.toString()[0], '1');
}

Expand Down
1 change: 0 additions & 1 deletion src/silo/query_engine/actions/fasta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ void addSequencesFromResultTableToJson(
auto current_key = table_reader.next(genome_buffer);
assert(current_key.has_value());
if (genome_buffer.has_value()) {
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
results.query_result.at(idx).fields.emplace(sequence_name, *genome_buffer);
} else {
results.query_result.at(idx).fields.emplace(sequence_name, std::nullopt);
Expand Down

0 comments on commit 5301657

Please sign in to comment.