Skip to content

Commit d91f9bd

Browse files
committed
Fix excess newline
1 parent e520b05 commit d91f9bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,10 @@ pub fn run(config: Config) -> Result<(), Box<dyn Error>> {
191191

192192
return Ok(());
193193
} else {
194-
let translation =
195-
change_naming_convention(&PathBuf::from(&input), &config.naming_convention)?;
194+
let translation = change_naming_convention(
195+
&PathBuf::from(input.trim()),
196+
&config.naming_convention,
197+
)?;
196198
println!("{}", translation);
197199
files_renamed += 1;
198200
}

0 commit comments

Comments
 (0)