Skip to content

Commit

Permalink
fix: case/when fallthrough expected
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorton committed Dec 2, 2024
1 parent a162b37 commit 63c7559
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/veksel/suffix.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
module Veksel
class Suffix
PROTECTED_BRANCHES = %w[master main].freeze
PROTECTED_BRANCHES = %w[master main HEAD].freeze

def initialize(branch_name)
@branch_name = String(branch_name)
end

def to_s
case @branch_name
when 'HEAD'
when *PROTECTED_BRANCHES
""
else
Expand Down

0 comments on commit 63c7559

Please sign in to comment.