mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
refactor: use null propagation operator
This commit is contained in:
parent
fea09a6b74
commit
2598389036
@ -38,7 +38,7 @@ public void AddSearchDirectory(string directory)
|
||||
public static string UnityEngineDLLDirectoryName()
|
||||
{
|
||||
string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
|
||||
return directoryName != null ? directoryName.Replace(@"file:\", "") : null;
|
||||
return directoryName?.Replace(@"file:\", "");
|
||||
}
|
||||
|
||||
public static ISymbolReaderProvider GetSymbolReaderProvider(string inputFile)
|
||||
|
Loading…
Reference in New Issue
Block a user