| skipped 165 lines |
166 | 166 | | return; |
167 | 167 | | } |
168 | 168 | | |
169 | | - | let npm_script = scripts.and_then(|scripts| { |
170 | | - | scripts.get(script_name.as_str()).and_then(|script| { |
| 169 | + | let npm_script = scripts |
| 170 | + | .unwrap() |
| 171 | + | .get(script_name.as_str()) |
| 172 | + | .and_then(|script| { |
171 | 173 | | let script = script.as_str().map(|script| script.to_string()); |
172 | 174 | | Some(script.unwrap_or_default()) |
173 | | - | }) |
174 | | - | }); |
| 175 | + | }); |
175 | 176 | | |
176 | 177 | | if npm_script.is_some() { |
177 | 178 | | let script = npm_script.unwrap(); |
| skipped 44 lines |