Fix silly if statement.
This commit is contained in:
parent
a89e51f5e7
commit
1060d7d73c
@ -47,10 +47,7 @@ namespace ReMime.Platform
|
||||
|
||||
public bool TryResolve(string extension, out MediaType? mediaType)
|
||||
{
|
||||
if (_extensionsMap.TryGetValue(extension, out mediaType))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return _extensionsMap.TryGetValue(extension, out mediaType);
|
||||
}
|
||||
|
||||
private static readonly char[] s_delimeters = new char[] { '\t', ' ' };
|
||||
|
@ -52,15 +52,7 @@ namespace ReMime.Platform
|
||||
|
||||
public bool TryResolve(string extension, out MediaType? mediaType)
|
||||
{
|
||||
if (_extensionsMap.TryGetValue(extension, out mediaType))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mediaType = null;
|
||||
return true;
|
||||
}
|
||||
return _extensionsMap.TryGetValue(extension, out mediaType);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user