AptiGram.Modules.BackgroundModule.JsonIsSame C# (CSharp) Method

JsonIsSame() private method

private JsonIsSame ( IReadOnlyList contents, string json ) : bool
contents IReadOnlyList
json string
return bool
        private bool JsonIsSame(IReadOnlyList<RepositoryContent> contents, string json)
        {
            var gitHubJson = contents?.First()?.Content?.Replace(" ", "").Replace(Environment.NewLine, "");
            var instagramJson = json?.Replace(" ", "").Replace(Environment.NewLine, "");

            return string.Compare(gitHubJson, instagramJson, true) == 0;
        }
    }