diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 1c07073e2d..1b49f7a315 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -340,8 +340,10 @@ def sync_default_gems_with_commits(gem, range) end end - puts "---- failed commits ----" - puts failed_commits + unless failed_commits.empty? + puts "---- failed commits ----" + puts failed_commits + end end def sync_lib(repo)