aboutsummaryrefslogtreecommitdiff
path: root/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2018-12-19 21:39:58 -0500
committerGitHub <noreply@github.com>2018-12-19 21:39:58 -0500
commit0fa52f417781b5e418f6027c031246936395d406 (patch)
treea206d16459f842e594c15ac1fdcd8eff37460108 /Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
parent2df4e5a564d05b8e9755a080a232f6f0ee0095f0 (diff)
parent1a2153c3997f4624512182c747aec4ca0da1f5ed (diff)
Merge pull request #184 from Bond-009/warnings
[WIP] Remove warnings
Diffstat (limited to 'Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs')
-rw-r--r--Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs17
1 files changed, 5 insertions, 12 deletions
diff --git a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
index 12669d05d..620d3bae9 100644
--- a/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
+++ b/Emby.IsoMounting/IsoMounter/LinuxIsoManager.cs
@@ -144,24 +144,17 @@ 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 LinuxMount mountedISO)) {
+ return Task.FromResult<IIsoMount>(mountedISO);
+ }
+ else {
throw new IOException(String.Format(
"An error occurred trying to mount image [$0].",
isoPath
));
-
}
-
}
#endregion