We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c773444 + e234d37 commit 0b9b187Copy full SHA for 0b9b187
stackslib/src/net/api/getattachmentsinv.rs
@@ -96,11 +96,10 @@ impl HttpRequest for RPCGetAttachmentsInvRequestHandler {
96
if key == "index_block_hash" {
97
index_block_hash = StacksBlockId::from_hex(&value).ok();
98
} else if key == "pages_indexes" {
99
- if let Ok(pages_indexes_value) = value.parse::<String>() {
100
- for entry in pages_indexes_value.split(',') {
101
- if let Ok(page_index) = entry.parse::<u32>() {
102
- page_indexes.insert(page_index);
103
- }
+ let pages_indexes_value = value.to_string();
+ for entry in pages_indexes_value.split(',') {
+ if let Ok(page_index) = entry.parse::<u32>() {
+ page_indexes.insert(page_index);
104
}
105
106
0 commit comments