mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Reduce nesting and fix some formatting
This commit is contained in:
@@ -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;
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user