mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
fix: linting errors
This commit is contained in:
parent
ee03656d9c
commit
af16ef7ff0
2 changed files with 6 additions and 6 deletions
|
@ -94,7 +94,7 @@ pub fn err_invalid_package_target(
|
|||
}
|
||||
|
||||
pub fn err_missing_declaration_file(
|
||||
path: &PathBuf,
|
||||
path: &Path,
|
||||
package_json_path: &Path,
|
||||
subpath: &str,
|
||||
) -> AnyError {
|
||||
|
@ -102,7 +102,7 @@ pub fn err_missing_declaration_file(
|
|||
"[TS7016] Could not find a declaration file for subpath {} in {}. {} implicitly has an 'any' type.",
|
||||
subpath,
|
||||
&package_json_path.display(),
|
||||
&path.display()
|
||||
path.display()
|
||||
);
|
||||
|
||||
generic_error(msg)
|
||||
|
|
|
@ -793,8 +793,8 @@ impl NodeResolver {
|
|||
} else {
|
||||
Err(throw_missing_declaration_file(
|
||||
&path,
|
||||
&package_json_path,
|
||||
&package_subpath,
|
||||
package_json_path,
|
||||
package_subpath,
|
||||
))
|
||||
}
|
||||
} else {
|
||||
|
@ -1469,11 +1469,11 @@ fn throw_invalid_package_target(
|
|||
}
|
||||
|
||||
fn throw_missing_declaration_file(
|
||||
path: &PathBuf,
|
||||
path: &Path,
|
||||
package_json_path: &Path,
|
||||
subpath: &str,
|
||||
) -> AnyError {
|
||||
errors::err_missing_declaration_file(&path, &package_json_path, &subpath)
|
||||
errors::err_missing_declaration_file(path, package_json_path, subpath)
|
||||
}
|
||||
|
||||
fn throw_invalid_subpath(
|
||||
|
|
Loading…
Add table
Reference in a new issue