Skip to content

Commit

Permalink
Merge pull request AY2324S2-CS2103T-T08-1#67 from laney0808/fix-non-c…
Browse files Browse the repository at this point in the history
…ompilling-code

Remove duplicated `BloodType.orElse()` method
  • Loading branch information
alex-setyawan authored Mar 21, 2024
2 parents 5a20a8f + a255551 commit a3076ae
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/main/java/seedu/address/model/person/BloodType.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ public String orElse(String alt) {
return this.bloodType == null ? alt : this.toString();
}

/**
* Returns given placeholder string if value field is not initialised
*
* @param alt An alternate return value
* @return placeholder string
*/
public String orElse(String alt) {
return this.bloodType == null ? alt : this.toString();
}

@Override
public String toString() {
return this.bloodType;
Expand Down

0 comments on commit a3076ae

Please sign in to comment.