mirror of
https://github.com/starship/starship.git
synced 2024-11-22 00:04:05 +01:00
style: better variable name
This commit is contained in:
parent
754cb8e3f2
commit
8798e9a538
@ -36,10 +36,10 @@ impl<'de> Deserialize<'de> for StarshipConditionalStyleOperator {
|
||||
}
|
||||
|
||||
impl StarshipConditionalStyleOperator {
|
||||
fn invoke(&self, left_hand_side: Option<String>, right_hand_side: Option<String>) -> bool {
|
||||
fn invoke(&self, left_arm: Option<String>, right_arm: Option<String>) -> bool {
|
||||
match self {
|
||||
StarshipConditionalStyleOperator::Equal => left_hand_side == right_hand_side,
|
||||
StarshipConditionalStyleOperator::Exists => left_hand_side.is_some(),
|
||||
StarshipConditionalStyleOperator::Equal => left_arm == right_arm,
|
||||
StarshipConditionalStyleOperator::Exists => left_arm.is_some(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user