Skip to content

Commit db42d38

Browse files
committed
Remove defunct dependency
Also, benchmark auditing rather than clone + audit
1 parent 319624e commit db42d38

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/workers/commit_collector.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
limitations under the License.
1515
=end
1616

17-
require 'git'
1817
require_relative 'commit_auditor'
1918
require_relative "#{Rails.root}/lib/github_api"
2019

app/workers/initial_auditor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class InitialAuditor
2323

2424
def perform(project_id, project_name, rules)
2525
Rails.logger.debug "Collecting commits for #{project_name} for the first time"
26-
start_time = Time.now
2726
repo = GitRepo.new(project_name)
2827
Rails.logger.debug "Collected #{repo.commits.size} commits from #{project_name}"
2928

29+
start_time = Time.now
3030
rules = JSON.parse(rules, symbolize_names: true)
3131
builder = AuditResultsBuilder.new
3232
commits = []

0 commit comments

Comments
 (0)