mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(oxlint): remove unused CliRunResult::PathNotFound (#8775)
This commit is contained in:
parent
fb5b1fa015
commit
f4cecb52b1
1 changed files with 1 additions and 11 deletions
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Reference in a new issue