Skip to content

Commit 3effac1

Browse files
committed
fix: rogue comment
1 parent 284f0e8 commit 3effac1

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

rewatch/src/build/packages.rs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@ pub fn read_dependency(
292292
Ok(canonical_path)
293293
}
294294

295-
/// # Make Package
296-
297295
/// Given a config, recursively finds all dependencies.
298296
/// 1. It starts with registering dependencies and
299297
/// prevents the operation for the ones which are already
@@ -533,10 +531,7 @@ pub fn get_source_files(
533531
};
534532

535533
let path_dir = Path::new(&source.dir);
536-
let is_type_dev = type_
537-
.as_ref()
538-
.map(|t| t.as_str() == "dev")
539-
.unwrap_or(false);
534+
let is_type_dev = type_.as_ref().map(|t| t.as_str() == "dev").unwrap_or(false);
540535
match (build_dev_deps, type_) {
541536
(false, Some(type_)) if type_ == "dev" => (),
542537
_ => match read_folders(filter, package_dir, path_dir, recurse, is_type_dev) {
@@ -665,18 +660,12 @@ pub fn parse_packages(build_state: &mut BuildState) {
665660
if spec.is_common_js() {
666661
helpers::create_path(&package.get_js_path());
667662
relative_dirs.iter().for_each(|path_buf| {
668-
helpers::create_path_for_path(&Path::join(
669-
&package.get_js_path(),
670-
path_buf,
671-
))
663+
helpers::create_path_for_path(&Path::join(&package.get_js_path(), path_buf))
672664
})
673665
} else {
674666
helpers::create_path(&package.get_es6_path());
675667
relative_dirs.iter().for_each(|path_buf| {
676-
helpers::create_path_for_path(&Path::join(
677-
&package.get_es6_path(),
678-
path_buf,
679-
))
668+
helpers::create_path_for_path(&Path::join(&package.get_es6_path(), path_buf))
680669
})
681670
}
682671
}

0 commit comments

Comments
 (0)