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 29544d2 commit 5917c1eCopy full SHA for 5917c1e
src/context.rs
@@ -132,12 +132,9 @@ impl Context {
132
self.error_handler
133
.set_path(self.path.clone().unwrap_or_default());
134
135
- match &self.path {
136
- Some(p) => {
137
- self.included.insert(p.clone());
138
- }
139
- None => {}
140
- };
+ if let Some(p) = &self.path {
+ self.included.insert(p.clone());
+ }
141
}
142
143
/// Add an error to the context
0 commit comments