File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ pub fn ordered_list(Json(args): Json<Vec<Value>>) -> FnResult<String> {
30
30
let mut items_str = String :: new ( ) ;
31
31
for item in items {
32
32
if item. starts_with ( "<UnorderedList>" ) || item. starts_with ( "<OrderedList>" ) {
33
- return Err ( WithReturnCode :: new (
34
- anyhow:: anyhow!( "items cannot contain another list" ) ,
35
- 1 ,
36
- ) ) ;
33
+ items_str. push_str ( & item) ;
37
34
} else {
38
35
items_str. push_str ( & format ! ( "<ListItem>{}</ListItem>" , item) ) ;
39
36
}
Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ pub fn unordered_list(Json(args): Json<Vec<Value>>) -> FnResult<String> {
30
30
let mut items_str = String :: new ( ) ;
31
31
for item in items {
32
32
if item. starts_with ( "<UnorderedList>" ) || item. starts_with ( "<OrderedList>" ) {
33
- return Err ( WithReturnCode :: new (
34
- anyhow:: anyhow!( "items cannot contain another list" ) ,
35
- 1 ,
36
- ) ) ;
33
+ items_str. push_str ( & item) ;
37
34
} else {
38
35
items_str. push_str ( & format ! ( "<ListItem>{}</ListItem>" , item) ) ;
39
36
}
You can’t perform that action at this time.
0 commit comments