C#: Reduce nesting and fix some formatting

This commit is contained in:
Tamas Vajk
2020-10-02 11:56:50 +02:00
parent e73ced2275
commit c38bf5ee5b
11 changed files with 125 additions and 111 deletions

View File

@@ -30,10 +30,11 @@ namespace Semmle.Extraction.PDB
var rawContents = document.GetEmbeddedSource().ToArray();
return System.Text.Encoding.Default.GetString(rawContents);
}
else
{
return File.Exists(Path) ? File.ReadAllText(Path) : null;
}
return File.Exists(Path)
? File.ReadAllText(Path)
: null;
});
}