Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Aug 3, 2023
1 parent 8d72eb4 commit 34830ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions endToEndTests/test/query.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ describe('The /query endpoint', () => {

testCases.forEach(testCase =>
it('should return data for the test case ' + testCase.testCaseName, async () => {
let response = await server.post('/query').send(testCase.query);
try {
expect(response.status).to.equal(200);
expect(response.header['content-type']).to.equal('application/json');
} catch (error) {
console.error('Error in response header! Error body:', response.body);
throw error;
}
expect(response.body.queryResult).to.deep.equal(testCase.expectedQueryResult);
let response = await server.post('/query').send(testCase.query);
try {
expect(response.status).to.equal(200);
expect(response.header['content-type']).to.equal('application/json');
} catch (error) {
console.error('Error in response header! Error body:', response.body);
throw error;
}
expect(response.body.queryResult).to.deep.equal(testCase.expectedQueryResult);
})
);

Expand Down
2 changes: 1 addition & 1 deletion src/silo/storage/aa_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void silo::AAPosition::flipMostNumerousBitmap(uint32_t sequence_count) {

silo::AAStorePartition::AAStorePartition(const std::vector<AA_SYMBOL>& reference_sequence)
: reference_sequence(reference_sequence) {
for (AA_SYMBOL symbol : reference_sequence) {
for (const AA_SYMBOL symbol : reference_sequence) {
positions.emplace_back(symbol);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/silo/storage/sequence_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ silo::SequenceStorePartition::SequenceStorePartition(
const std::vector<NUCLEOTIDE_SYMBOL>& reference_genome
)
: reference_genome(reference_genome) {
for (NUCLEOTIDE_SYMBOL symbol : reference_genome) {
for (const NUCLEOTIDE_SYMBOL symbol : reference_genome) {
positions.emplace_back(symbol);
}
}
Expand Down

0 comments on commit 34830ab

Please sign in to comment.