mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-21 16:58:37 +00:00
Use C# 10 string interpolation wherever possible
This commit is contained in:
@@ -55,7 +55,7 @@ public sealed class StructureController : ArchiController {
|
||||
try {
|
||||
obj = Activator.CreateInstance(targetType, true);
|
||||
} catch (Exception e) {
|
||||
return BadRequest(new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingObject, nameof(targetType)) + Environment.NewLine + e));
|
||||
return BadRequest(new GenericResponse(false, $"{string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingObject, nameof(targetType))}{Environment.NewLine}{e}"));
|
||||
}
|
||||
|
||||
return Ok(new GenericResponse<object>(obj));
|
||||
|
||||
Reference in New Issue
Block a user