1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00

chore: fix linting

This commit is contained in:
Marvin Hagemeister 2024-10-25 15:47:58 +02:00
parent 6a93485ae2
commit 3c5b5d0710

View file

@ -606,7 +606,7 @@ fn discover_npmrc(
// 3. Try `.npmrc` in cwd if no package.json or deno.json(c) was found
if let Some(cwd) = cwd {
if maybe_package_json_path.is_none() && maybe_deno_json_path.is_none() {
if let Some((source, path)) = try_to_read_npmrc(&cwd)? {
if let Some((source, path)) = try_to_read_npmrc(cwd)? {
return try_to_parse_npmrc(source, &path).map(|r| (r, Some(path)));
}
}