Amazon.Runtime.Internal.Util.OptimisticLockedTextFile.HasEnding C# (CSharp) Method

HasEnding() private static method

private static HasEnding ( string line ) : bool
line string
return bool
        private static bool HasEnding(string line)
        {
            var lastChar = line[line.Length - 1];
            return lastChar == '\n' || lastChar == '\r';
        }