Use || operator instead 'if' -> 'if'

This commit is contained in:
ivandrofly 2015-04-03 12:23:45 +00:00
parent 9ea729b2c7
commit d0dda4b1b3

View File

@ -135,13 +135,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
private static bool IsText(string text)
{
if (string.IsNullOrWhiteSpace(text))
return false;
if (Utilities.IsInteger(text))
return false;
if (RegexTimeCodes.IsMatch(text))
if (string.IsNullOrWhiteSpace(text) || Utilities.IsInteger(text) || RegexTimeCodes.IsMatch(text))
return false;
return true;