refactor(oxlint): remove unused CliRunResult::PathNotFound (#8775)

This commit is contained in:
Sysix 2025-01-30 01:43:41 +00:00
parent fb5b1fa015
commit f4cecb52b1

View file

@ -1,7 +1,4 @@
use std::{
path::PathBuf,
process::{ExitCode, Termination},
};
use std::process::{ExitCode, Termination};
#[derive(Debug)]
pub enum CliRunResult {
@ -9,9 +6,6 @@ pub enum CliRunResult {
InvalidOptions {
message: String,
},
PathNotFound {
paths: Vec<PathBuf>,
},
/// The exit unix code for, in general 0 or 1 (from `--deny-warnings` or `--max-warnings` for example)
LintResult(ExitCode),
PrintConfigResult,
@ -29,10 +23,6 @@ impl Termination for CliRunResult {
println!("Invalid Options: {message}");
ExitCode::from(1)
}
Self::PathNotFound { paths } => {
println!("Path {paths:?} does not exist.");
ExitCode::from(1)
}
Self::LintResult(exit_code) => exit_code,
Self::ConfigFileInitResult { message } => {
println!("{message}");