Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h committed Oct 1, 2022
1 parent 05e053b commit cee0155
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rnokpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func IsMale(rnokpp string) (bool, error) {
return false, err
}

return details.Gender.isMale(), nil
return details.Gender.IsMale(), nil
}

// IsFemale checks if RNOKPP belongs to the female gender
Expand All @@ -98,7 +98,7 @@ func IsFemale(rnokpp string) (bool, error) {
return false, err
}

return details.Gender.isFemale(), nil
return details.Gender.IsFemale(), nil
}

// GetGender gets a gender from RNOKPP
Expand Down
8 changes: 4 additions & 4 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ func (g Gender) String() string {
return string(g)
}

// isMale checks if gender is male
func (g Gender) isMale() bool {
// IsMale checks if gender is male
func (g Gender) IsMale() bool {
return g == Male
}

// isFemale checks if gender is female
func (g Gender) isFemale() bool {
// IsFemale checks if gender is female
func (g Gender) IsFemale() bool {
return g == Female
}

Expand Down

0 comments on commit cee0155

Please sign in to comment.