Skip to content

Commit

Permalink
Remove redundant ToString call
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepan Goremykin committed Apr 6, 2023
1 parent 08ce477 commit 9d738bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MediaBrowser.Common/Plugins/BasePluginOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected BasePlugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSeria
if (Version is not null && !Directory.Exists(dataFolderPath))
{
// Try again with the version number appended to the folder name.
dataFolderPath += "_" + Version.ToString();
dataFolderPath += "_" + Version;
}

SetAttributes(assemblyFilePath, dataFolderPath, assemblyName.Version);
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ private async Task AddCommonNodesAsync(BaseItem item, XmlWriter writer)
await writer.WriteStartElementAsync(null, "Person", null).ConfigureAwait(false);
await writer.WriteElementStringAsync(null, "Name", null, person.Name).ConfigureAwait(false);
await writer.WriteElementStringAsync(null, "Type", null, person.Type.ToString()).ConfigureAwait(false);
await writer.WriteElementStringAsync(null, "Role", null, person.Role.ToString()).ConfigureAwait(false);
await writer.WriteElementStringAsync(null, "Role", null, person.Role).ConfigureAwait(false);

if (person.SortOrder.HasValue)
{
Expand Down
2 changes: 1 addition & 1 deletion RSSDP/SsdpDevicePublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ private class SearchRequest

public string Key
{
get { return this.SearchTarget + ":" + this.EndPoint.ToString(); }
get { return this.SearchTarget + ":" + this.EndPoint; }
}

public bool IsOld()
Expand Down

0 comments on commit 9d738bb

Please sign in to comment.