aboutsummaryrefslogtreecommitdiff
path: root/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2018-12-15 19:53:09 +0100
committerBond_009 <bond.009@outlook.com>2018-12-16 00:49:18 +0100
commit22093c9e8fe15691cca79795acc2616a8b7ec4ff (patch)
tree56b40f8dd4d23ae244a7fc787affbe1ac817e899 /Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
parent336a4a2b8d728c32bd22404dfa16f1a80a3e9b15 (diff)
Removed some warnings
Diffstat (limited to 'Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs')
-rw-r--r--Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs17
1 files changed, 7 insertions, 10 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
index 12669d05d..4716c64b2 100644
--- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
+++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
@@ -144,24 +144,21 @@ namespace IsoMounter
return Task.FromResult(false);
}
- public async Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken)
+ public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken)
{
-
LinuxMount mountedISO;
- if (MountISO(isoPath, out mountedISO)) {
-
- return mountedISO;
-
- }else{
-
+ if (MountISO(isoPath, out mountedISO))
+ {
+ return Task.FromResult<IIsoMount>(mountedISO);
+ }
+ else
+ {
throw new IOException(String.Format(
"An error occurred trying to mount image [$0].",
isoPath
));
-
}
-
}
#endregion