mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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::{
|
use std::process::{ExitCode, Termination};
|
||||||
path::PathBuf,
|
|
||||||
process::{ExitCode, Termination},
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum CliRunResult {
|
pub enum CliRunResult {
|
||||||
|
|
@ -9,9 +6,6 @@ pub enum CliRunResult {
|
||||||
InvalidOptions {
|
InvalidOptions {
|
||||||
message: String,
|
message: String,
|
||||||
},
|
},
|
||||||
PathNotFound {
|
|
||||||
paths: Vec<PathBuf>,
|
|
||||||
},
|
|
||||||
/// The exit unix code for, in general 0 or 1 (from `--deny-warnings` or `--max-warnings` for example)
|
/// The exit unix code for, in general 0 or 1 (from `--deny-warnings` or `--max-warnings` for example)
|
||||||
LintResult(ExitCode),
|
LintResult(ExitCode),
|
||||||
PrintConfigResult,
|
PrintConfigResult,
|
||||||
|
|
@ -29,10 +23,6 @@ impl Termination for CliRunResult {
|
||||||
println!("Invalid Options: {message}");
|
println!("Invalid Options: {message}");
|
||||||
ExitCode::from(1)
|
ExitCode::from(1)
|
||||||
}
|
}
|
||||||
Self::PathNotFound { paths } => {
|
|
||||||
println!("Path {paths:?} does not exist.");
|
|
||||||
ExitCode::from(1)
|
|
||||||
}
|
|
||||||
Self::LintResult(exit_code) => exit_code,
|
Self::LintResult(exit_code) => exit_code,
|
||||||
Self::ConfigFileInitResult { message } => {
|
Self::ConfigFileInitResult { message } => {
|
||||||
println!("{message}");
|
println!("{message}");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue