mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 04:45:04 +02:00
removed unwraps (#430)
This commit is contained in:
@ -143,7 +143,7 @@ where
|
||||
input,
|
||||
);
|
||||
let to_trim = match options.character.as_ref() {
|
||||
Some(v) => v.as_string().unwrap().chars().next(),
|
||||
Some(v) => v.as_string()?.chars().next(),
|
||||
None => None,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user