Code Duplication    Length = 4-4 lines in 2 locations

apps/files_sharing/lib/Controller/ShareAPIController.php 2 locations

@@ 919-922 (lines=4) @@
916
917
918
		try {
919
			if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) {
920
				$share = $this->shareManager->getShareById('ocCircleShare:' . $id);
921
				return $share;
922
			}
923
		} catch (ShareNotFound $e) {
924
			// Do nothing, just try the other share type
925
		}
@@ 928-931 (lines=4) @@
925
		}
926
927
		try {
928
			if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) {
929
				$share = $this->shareManager->getShareById('ocMailShare:' . $id);
930
				return $share;
931
			}
932
		} catch (ShareNotFound $e) {
933
			// Do nothing, just try the other share type
934
		}