Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Files/Cache/Scanner.php 2 locations

@@ 246-248 (lines=3) @@
243
				return null;
244
			} finally {
245
				//release the acquired lock
246
				if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) {
247
					$this->storage->releaseLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
248
				}
249
			}
250
		}
251
@@ 147-149 (lines=3) @@
144
		if (!self::isPartialFile($file) and !Filesystem::isFileBlacklisted($file)) {
145
146
			//acquire a lock
147
			if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) {
148
				$this->storage->acquireLock($file, ILockingProvider::LOCK_SHARED, $this->lockingProvider);
149
			}
150
151
			try {
152
				$data = $this->getData($file);