Finishing touches

This commit is contained in:
Lohikar 2017-11-23 16:34:04 -06:00
parent 2d55eb52cd
commit 31d520d677
4 changed files with 42 additions and 32 deletions

View file

@ -27,7 +27,7 @@ namespace AuroraRecordGenerator
/// </summary>
/// <param name="val"></param>
/// <returns></returns>
public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : " " + val + " ";
public static string SpaceIfValue(this string val) => string.IsNullOrWhiteSpace(val) ? string.Empty : $" {val} ";
public static string IfEmpty(this string target, string fallback) =>
target.IsEmpty() ? fallback : target;