You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: single_repository_worker.rb
    path of file: ./repos/gitlabhq/app/workers/repository_check
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RepositoryCheck
  class SingleRepositoryWorker # rubocop:disable Scalability/Idempoten
    
    def git_fsck(repository)
      return false unless repository.exists?

      repository.raw_repository.fsck

      true
    rescue Gitlab::Git::Repository::GitError => e
      Gitlab::RepositoryCheckLogger.error("#{repository.full_path}: #{e.message}")
      false
    end