Skip to content

Commit

Permalink
trim trim
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Aug 5, 2024
1 parent 63083eb commit 1c15b8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/libs/registry/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ impl TryFrom<Value> for String {
type Error = Error;
fn try_from(from: Value) -> Result<Self> {
match from.ty {
Type::String | Type::ExpandString => {
Ok(Self::from_utf16(trim(trim(from.data.as_wide())))?)
}
Type::String | Type::ExpandString => Ok(Self::from_utf16(trim(from.data.as_wide()))?),
_ => Err(invalid_data()),
}
}
Expand Down

0 comments on commit 1c15b8e

Please sign in to comment.