use is_empty here
This commit is contained in:
parent
c4c29328b6
commit
3ef61b889a
@ -173,7 +173,7 @@ pub fn process_func_str(function_in: &str) -> String {
|
|||||||
/// Tests function to make sure it's able to be parsed. Returns the string of
|
/// Tests function to make sure it's able to be parsed. Returns the string of
|
||||||
/// the Error produced, or an empty string if it runs successfully.
|
/// the Error produced, or an empty string if it runs successfully.
|
||||||
pub fn test_func(function_string: &str) -> Option<String> {
|
pub fn test_func(function_string: &str) -> Option<String> {
|
||||||
if function_string == "" {
|
if function_string.is_empty() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user