Skip to content

Commit

Permalink
lint change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ersan Bozduman committed Nov 30, 2023
1 parent 75952c0 commit 1dcd03b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Minio/Helper/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,21 +1065,14 @@ public static string SerializeToXml<T>(T anyobject) where T : class
using var stringReader = new StringReader(xml);
using var xmlReader = XmlReader.Create(stringReader, settings);

try
{
var serializer = new XmlSerializer(typeof(T));
return (T)serializer.Deserialize(xmlReader);
}
catch
{
throw;
}
var serializer = new XmlSerializer(typeof(T));
return (T)serializer.Deserialize(xmlReader);
}

private static string GetNamespace<T>()
{
return typeof(T).GetCustomAttributes(typeof(XmlRootAttribute), true)
.FirstOrDefault() is XmlRootAttribute xmlRootAttribute
.FirstOrDefault() is XmlRootAttribute xmlRootAttribute
? xmlRootAttribute.Namespace
: null;
}
Expand Down

0 comments on commit 1dcd03b

Please sign in to comment.