Update Detection.php

The latter implies the former.

https://github.com/nextcloud/server/pull/38261#discussion_r1196708412

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
This commit is contained in:
Faraz Samapoor 2023-05-17 20:37:35 +03:30 committed by GitHub
parent e7cc7653b8
commit 9f6f4b105f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,7 +246,7 @@ class Detection implements IMimeTypeDetector {
}
}
if (str_contains($path, '://') && str_starts_with($path, 'file://')) {
if (str_starts_with($path, 'file://')) {
// Is the file wrapped in a stream?
return 'application/octet-stream';
}