Replace F extension with string interpolation
This commit is contained in:
@@ -49,14 +49,14 @@ namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
foreach (var type in types)
|
||||
if (!TypeImplementsSync(type) && AnyTypeMemberIsSynced(type))
|
||||
emitWarning("{0} has members with the Sync attribute but does not implement ISync".F(type.FullName));
|
||||
emitWarning($"{type.FullName} has members with the Sync attribute but does not implement ISync");
|
||||
}
|
||||
|
||||
static void CheckTypesImplementingSyncInterfaceHaveSyncableMembers(IEnumerable<Type> types, Action<string> emitWarning)
|
||||
{
|
||||
foreach (var type in types)
|
||||
if (TypeImplementsSync(type) && !AnyTypeMemberIsSynced(type))
|
||||
emitWarning("{0} implements ISync but does not use the Sync attribute on any members.".F(type.FullName));
|
||||
emitWarning($"{type.FullName} implements ISync but does not use the Sync attribute on any members.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user