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.
cargo fmt
1 parent db5eae6 commit 3b72d87Copy full SHA for 3b72d87
juniper_rocket/src/lib.rs
@@ -110,16 +110,14 @@ where
110
111
pub fn operation_name(&self) -> Option<&str> {
112
match self {
113
- GraphQLBatchRequest::Single(req) => {
114
- req.operation_name()
115
- },
+ GraphQLBatchRequest::Single(req) => req.operation_name(),
116
GraphQLBatchRequest::Batch(reqs) => {
117
if reqs.len() == 1 {
118
reqs.get(0).and_then(|req| req.operation_name())
119
} else {
120
None
121
}
122
+ }
123
124
125
0 commit comments