lib/overcommit/hook_context/pre_push.rb in overcommit-0.52.0 vs lib/overcommit/hook_context/pre_push.rb in overcommit-0.52.1

- old
+ new

@@ -15,11 +15,11 @@ def remote_ref_deletion? return @remote_ref_deletion if defined?(@remote_ref_deletion) @remote_ref_deletion ||= input_lines. - first. - split(' '). + first&. + split(' ')&. first == '(deleted)' end def pushed_refs input_lines.map do |line|