File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ pub(crate) fn format_ufo(
20
20
return Err ( Error :: InvalidPath ( ufopath. into ( ) ) ) ;
21
21
}
22
22
// define out directory path based on optional user-specified command line options
23
- let outpath;
24
- if unique_filename. is_some ( ) || unique_extension. is_some ( ) {
25
- outpath = utils:: get_ufo_outpath ( ufopath, unique_filename, unique_extension) ;
23
+ let outpath: PathBuf = if unique_filename. is_some ( ) || unique_extension. is_some ( ) {
24
+ utils:: get_ufo_outpath ( ufopath, unique_filename, unique_extension)
26
25
} else {
27
26
// if the user did not specify options for custom file name or custom
28
27
// extension, then write in place over the in path
29
- outpath = ufopath. to_path_buf ( ) ;
30
- }
28
+ ufopath. to_path_buf ( )
29
+ } ;
31
30
32
31
// define the indentation spacing format based on user CL options
33
32
let indentation_str = get_indent_str ( indent_with_space, indent_number) ;
You can’t perform that action at this time.
0 commit comments