Skip to content

Commit

Permalink
[Port Of Palermo] Remove redundant returns in exemplar (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabo-cs authored Aug 21, 2023
1 parent f369455 commit ba816d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/concept/port-palermo/.meta/exemplar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module Port
IDENTIFIER = :PALE

def self.get_identifier(city)
return city[0..3].upcase.to_sym
city[0..3].upcase.to_sym
end

def self.get_terminal(ship_identifier)
cargo = ship_identifier.to_s[0..2]
return cargo == "OIL" || cargo == "GAS" ? :A : :B
cargo == "OIL" || cargo == "GAS" ? :A : :B
end
end

0 comments on commit ba816d4

Please sign in to comment.