diff options
Diffstat (limited to 'crates/shirabe-semver/src/constraint/match_none_constraint.rs')
| -rw-r--r-- | crates/shirabe-semver/src/constraint/match_none_constraint.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe-semver/src/constraint/match_none_constraint.rs b/crates/shirabe-semver/src/constraint/match_none_constraint.rs index 17a45bb..51e13fd 100644 --- a/crates/shirabe-semver/src/constraint/match_none_constraint.rs +++ b/crates/shirabe-semver/src/constraint/match_none_constraint.rs @@ -22,10 +22,10 @@ impl ConstraintInterface for MatchNoneConstraint { } fn get_pretty_string(&self) -> String { - if let Some(ref s) = self.pretty_string { - if !s.is_empty() { - return s.clone(); - } + if let Some(ref s) = self.pretty_string + && !s.is_empty() + { + return s.clone(); } self.__to_string() } |
