refactor: Rename NullIfEmpty ext fn to snake_case
This commit is contained in:
1 parent
e6c5afa8b2
commit
ee74548daa
2 files changed
+2
-2
No files matched your search
@@ -135,7 +135,7 @@ namespace mbts.spark {
|
||||
}
|
||||
// merge error msgs (result should be null if both errors are empty)
|
||||
var error_msg = string.Join(Environment.NewLine, new[] { sec_error_msg, strat_error_msg }.ExceptNull());
|
||||
return (key, error_msg.NullIfEmpty());
|
||||
return (key, error_msg.null_if_empty());
|
||||
},
|
||||
"Synthetic",
|
||||
"creating synthetics");
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace bts.utils {
|
||||
str ?? "";
|
||||
|
||||
[Pure]
|
||||
public static string NullIfEmpty(this string str) =>
|
||||
public static string null_if_empty(this string str) =>
|
||||
str == "" ? null : str;
|
||||
|
||||
[Pure]
|
||||
|
||||
Reference in new issue
Block a user