Skip to content

Commit e9522ab

Browse files
authored
fix: spacing in functions and comments
1 parent 7935e2f commit e9522ab

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/dpp/message.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -884,34 +884,34 @@ bool attachment::is_remix() const {
884884

885885
time_t attachment::get_expire_time() const {
886886
size_t attr_position = url.find('?');
887-
/*If no attributes were sent in url, we do not need to parse more*/
887+
/* If no attributes were sent in url, we do not need to parse more */
888888
if(url.npos == attr_position){
889889
return 0;
890890
}
891-
std::string attributes = url.substr(attr_position+1);
892-
std::vector<std::string> attr_list = utility::tokenize(attributes,"&");
893-
auto ex_attr = std::find_if(attr_list.begin(), attr_list.end(),[](const std::string& s){return s.substr(0,3) == "ex=";});
891+
std::string attributes = url.substr(attr_position + 1);
892+
std::vector<std::string> attr_list = utility::tokenize(attributes, "&");
893+
auto ex_attr = std::find_if(attr_list.begin(), attr_list.end(), [](const std::string& s){return s.substr(0, 3) == "ex=";});
894894
if(attr_list.end() == ex_attr){
895895
return 0;
896896
}
897-
/*Erase 'ex=' prefix before parsing*/
898-
return std::stol(ex_attr->substr(3),nullptr,16);
897+
/* Erase 'ex=' prefix before parsing */
898+
return std::stol(ex_attr->substr(3), nullptr, 16);
899899
}
900900

901901
time_t attachment::get_issued_time() const {
902902
size_t attr_position = url.find('?');
903-
/*No attributes were sent in url, so we do not need to parse more*/
903+
/* No attributes were sent in url, so we do not need to parse more */
904904
if(url.npos == attr_position){
905905
return 0;
906906
}
907-
std::string attributes = url.substr(attr_position+1);
908-
std::vector<std::string> attr_list = utility::tokenize(attributes,"&");
909-
auto is_attr = std::find_if(attr_list.begin(), attr_list.end(),[](const std::string& s){return s.substr(0,3) == "is=";});
907+
std::string attributes = url.substr(attr_position + 1);
908+
std::vector<std::string> attr_list = utility::tokenize(attributes, "&");
909+
auto is_attr = std::find_if(attr_list.begin(), attr_list.end(), [](const std::string& s){return s.substr(0, 3) == "is=";});
910910
if(attr_list.end() == is_attr){
911911
return 0;
912912
}
913-
/*Erase 'is=' prefix before parsing*/
914-
return std::stol(is_attr->substr(3),nullptr,16);
913+
/* Erase 'is=' prefix before parsing */
914+
return std::stol(is_attr->substr(3), nullptr, 16);
915915
}
916916

917917
json message::to_json(bool with_id, bool is_interaction_response) const {

0 commit comments

Comments
 (0)