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 b2a6227 commit d8a3639Copy full SHA for d8a3639
src/ts_generator/generator.rs
@@ -77,8 +77,8 @@ pub fn write_single_ts_file(sqls_to_write: String) -> Result<()> {
77
))?;
78
79
let parent_output_path: Option<&Path> = output.parent();
80
- if parent_output_path.is_some() {
81
- fs::create_dir_all(parent_output_path.unwrap())?;
+ if let Some(parent_output_path) = parent_output_path {
+ fs::create_dir_all(parent_output_path)?;
82
}
83
84
let mut file_to_write = OpenOptions::new()
0 commit comments