mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
Clean up some catch statements
This commit is contained in:
@@ -89,7 +89,7 @@ namespace SharpCifs
|
||||
{
|
||||
Runtime.GetBytesForString(string.Empty, DefaultOemEncoding);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
if (_log.Level >= 2)
|
||||
{
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace SharpCifs.Dcerpc
|
||||
DcerpcMessage bind = new DcerpcBind(Binding, this);
|
||||
Sendrecv(bind);
|
||||
}
|
||||
catch (IOException ioe)
|
||||
catch (IOException)
|
||||
{
|
||||
State = 0;
|
||||
throw;
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace SharpCifs.Netbios
|
||||
{
|
||||
name = Runtime.GetStringForBytes(tmp, 0, length).Trim();
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -117,8 +117,9 @@ namespace SharpCifs.Netbios
|
||||
{
|
||||
Baddr = Config.GetInetAddress("jcifs.netbios.baddr", Extensions.GetAddressByName("255.255.255.255"));
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
_sndBuf = new byte[SndBufSize];
|
||||
@@ -302,7 +303,10 @@ namespace SharpCifs.Netbios
|
||||
}
|
||||
|
||||
}
|
||||
catch (TimeoutException) { }
|
||||
catch (TimeoutException)
|
||||
{
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (_log.Level > 2)
|
||||
|
||||
@@ -192,7 +192,7 @@ namespace SharpCifs.Smb
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new SmbException(e.Message, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user