File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -274,14 +274,15 @@ pub fn get_git_modified_files(
274274 let files = output_result ( git. args ( [ "diff-index" , "--name-status" , merge_base. trim ( ) ] ) ) ?
275275 . lines ( )
276276 . filter_map ( |f| {
277- let ( status, name) = f. trim ( ) . split_once ( char:: is_whitespace) ?
277+ let ( status, name) = f. trim ( ) . split_once ( char:: is_whitespace) ?;
278278 if status == "D" {
279279 None
280280 } else if Path :: new ( name) . extension ( ) . map_or ( extensions. is_empty ( ) , |ext| {
281281 // If there is no extension, we allow the path if `extensions` is empty
282282 // If there is an extension, we allow it if `extension` is empty or it contains the
283283 // extension.
284- extensions. is_empty ( ) || ext. to_str ( ) . map_or ( false , |ext_str| extensions. contains ( & ext_str) )
284+ extensions. is_empty ( )
285+ || ext. to_str ( ) . map_or ( false , |ext_str| extensions. contains ( & ext_str) )
285286 } ) {
286287 Some ( name. to_owned ( ) )
287288 } else {
You can’t perform that action at this time.
0 commit comments