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.
1 parent 81963cb commit 9770a83Copy full SHA for 9770a83
tools/od_ref_bot/src/main.rs
@@ -209,10 +209,8 @@ fn format_embed(page: &str, data: &Data) -> Option<serenity::CreateEmbed> {
209
PageReturnOrString::PageReturn(page) => {
210
let mut return_string = String::new();
211
212
- if let Some(val) = &page._type {
213
- if let ReturnTypeOrBool::String(string) = val {
214
- return_string.push_str(string.as_str());
215
- }
+ if let Some(ReturnTypeOrBool::String(string)) = &page._type {
+ return_string.push_str(string.as_str());
216
};
217
218
if let Some(val) = &page.description {
@@ -499,4 +497,4 @@ impl PageArgs {
499
497
500
498
string
501
}
502
-}
+}
0 commit comments