Skip to content

Commit 9c79ef7

Browse files
authored
Merge branch 'develop' into dependabot/github_actions/develop/docker/login-action-3.6.0
2 parents c2cf329 + 897c255 commit 9c79ef7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/check_pr_title.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ jobs:
1515
task_types: '["build","feat","fix","docs","test","ci","style","refactor","perf","chore"]'
1616
add_label: false
1717
custom_labels: '{"build":"build", "feat":"enhancement", "fix":"bug", "docs":"documentation", "test":"testability", "ci":"ci", "style":"refactoring", "refactor":"refactoring", "perf":"performance", "chore":"tooling"}'
18+
19+
- name: Check if message starts with upper-case letter
20+
run: |
21+
if [[ ! "${{ github.event.pull_request.title }}" =~ ^[a-z]+:\ [A-Z] ]]; then
22+
echo "Error: PR title must start with an upper-case letter."
23+
exit 1
24+
fi

src/data/KeyspaceBackend.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class BasicKeyspaceBackend : public CassandraBackendFamily<
134134
auto const startTaxon = cursorIn.has_value() ? ripple::nft::toUInt32(ripple::nft::getTaxon(*cursorIn)) : 0;
135135
auto const startTokenID = cursorIn.value_or(ripple::uint256(0));
136136

137-
Statement firstQuery = schema_->selectNFTIDsByIssuerTaxon.bind(issuer);
137+
Statement const firstQuery = schema_->selectNFTIDsByIssuerTaxon.bind(issuer);
138138
firstQuery.bindAt(1, startTaxon);
139139
firstQuery.bindAt(2, startTokenID);
140140
firstQuery.bindAt(3, Limit{limit});
@@ -147,7 +147,7 @@ class BasicKeyspaceBackend : public CassandraBackendFamily<
147147

148148
if (nftIDs.size() < limit) {
149149
auto const remainingLimit = limit - nftIDs.size();
150-
Statement secondQuery = schema_->selectNFTsAfterTaxonKeyspaces.bind(issuer);
150+
Statement const secondQuery = schema_->selectNFTsAfterTaxonKeyspaces.bind(issuer);
151151
secondQuery.bindAt(1, startTaxon);
152152
secondQuery.bindAt(2, Limit{remainingLimit});
153153

@@ -197,7 +197,7 @@ class BasicKeyspaceBackend : public CassandraBackendFamily<
197197
) const
198198
{
199199
std::vector<ripple::uint256> nftIDs;
200-
Statement statement = schema_->selectNFTIDsByIssuerTaxon.bind(issuer);
200+
Statement const statement = schema_->selectNFTIDsByIssuerTaxon.bind(issuer);
201201
statement.bindAt(1, taxon);
202202
statement.bindAt(2, cursorIn.value_or(ripple::uint256(0)));
203203
statement.bindAt(3, Limit{limit});

0 commit comments

Comments
 (0)