public void Bad() { var sampleData = LookupA.LoadSome(); if (sampleData == null) { Logger.Log("No data"); } else { Logger.Log(string.IsNullOrEmpty(sampleData.SomeContent) ? "No content" : sampleData.SomeContent); } }
public void Bad() { var sampleData = LookupA.LoadSome(); if (sampleData != null) { RepositoryA.Persist(sampleData); } else { Logger.Log("No data"); } }
public void Bad() { var sampleDataA = LookupA.LoadSome(); if (sampleDataA != null) { var sampleDataB = LookupB.LoadSome(sampleDataA); if (sampleDataB != null) { Console.Write(sampleDataB); } } }
public void Worst() { var sampleData = LookupA.LoadSome(); RepositoryA.Persist(sampleData); }
public void Worst() { var sampleData = LookupA.LoadSome(); Logger.Log(sampleData.SomeContent); }