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: repo_files_examine_detective.rb
    path of file: ./repos/best-practices-badge/app/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Copyright 2015-2017, the Linux Foundation, IDA, and the
# OpenSSF Best Practices badge contributors
# SPDX-License-Identifier: MIT

# 
    
  def override_results_if_dir(status, name_pattern, result_description)
    html_url_directory = directory_named(name_pattern)
    return if html_url_directory.blank?

    @results[status] =
      met_result(result_description, html_url_directory['html_url'])
  end