aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Devices/DeviceService.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-04-15 11:09:14 +0200
committerBond_009 <bond.009@outlook.com>2020-04-15 11:09:14 +0200
commitfc049caba2ed4db499bd53a2e521550bc45b6ebe (patch)
tree95c4870cda0783f51dd8207a86fd5ae906054f77 /MediaBrowser.Api/Devices/DeviceService.cs
parent9cca964b0880dc41792fe27ee03e69609ff2ac7e (diff)
parent2eb5775ee3fc0bd98f88e7208798dec4aa63c724 (diff)
Merge branch 'master' into nullable3
Diffstat (limited to 'MediaBrowser.Api/Devices/DeviceService.cs')
-rw-r--r--MediaBrowser.Api/Devices/DeviceService.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/MediaBrowser.Api/Devices/DeviceService.cs b/MediaBrowser.Api/Devices/DeviceService.cs
index 8b63decd2..7004a2559 100644
--- a/MediaBrowser.Api/Devices/DeviceService.cs
+++ b/MediaBrowser.Api/Devices/DeviceService.cs
@@ -155,16 +155,14 @@ namespace MediaBrowser.Api.Devices
Id = id
});
}
- else
+
+ return _deviceManager.AcceptCameraUpload(deviceId, request.RequestStream, new LocalFileInfo
{
- return _deviceManager.AcceptCameraUpload(deviceId, request.RequestStream, new LocalFileInfo
- {
- MimeType = Request.ContentType,
- Album = album,
- Name = name,
- Id = id
- });
- }
+ MimeType = Request.ContentType,
+ Album = album,
+ Name = name,
+ Id = id
+ });
}
}
}