Remove unneeded function
This commit is contained in:
parent
9cb8b29487
commit
87fcf2edf1
|
@ -74,15 +74,6 @@ impl UrlBundle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unwraps an `Option<String>`. Returns an empty string if the String is `None`, or the String contents
|
|
||||||
/// if it is `Some`.
|
|
||||||
pub(crate) fn unwrap_empty_if_none(string: Option<String>) -> String {
|
|
||||||
match string {
|
|
||||||
Some(str) => str,
|
|
||||||
None => "".to_string(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod lib {
|
mod lib {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
Loading…
Reference in New Issue