Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nertsch committed May 1, 2018
1 parent 527526a commit 32c38a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ public static string NormalizeLineBreaks (string iCalendarData)

public static string EscapeBackslash (string value)
{
// DDay.iCal doesn't escape Backslash which leads to errors with some servers
return !string.IsNullOrEmpty (value) ? value.Replace (@"\", @"\\") : value;
// DDay.iCal doesn't escape Backslash which leads to errors with some servers
return value?.Replace(@"\", @"\\");
}
}
}

0 comments on commit 32c38a1

Please sign in to comment.