mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Inline out variable declarations
This commit is contained in:
@@ -177,8 +177,7 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
/// <returns>The converted name.</returns>
|
||||
public static string OperatorSymbol(Context cx, string methodName)
|
||||
{
|
||||
string result;
|
||||
if (!OperatorSymbol(methodName, out result))
|
||||
if (!OperatorSymbol(methodName, out string result))
|
||||
cx.ModelError($"Unhandled operator name in OperatorSymbol(): '{methodName}'");
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user