lib/milestoner/publisher.rb in milestoner-5.0.0 vs lib/milestoner/publisher.rb in milestoner-5.1.0
- old
+ new
@@ -6,15 +6,13 @@
def initialize tagger: Tagger.new, pusher: Pusher.new
@tagger = tagger
@pusher = pusher
end
+ # :reek:BooleanParameter
def publish version, sign: false
tagger.create version, sign: sign
- pusher.push
- rescue Errors::Git => error
- tagger.delete version
- raise error.class, error.message
+ pusher.push version
end
private
attr_reader :tagger, :pusher