Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Dec 15, 2024
1 parent 94e3a15 commit 91d463b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,15 +776,15 @@ func (h *header) Text() string {
return h.text
}

// TypeN retrieves the type value from the `header` instance.
// Type retrieves the type value from the `header` instance.
//
// This function checks if the `header` instance is available (non-nil) before retrieving
// the `Type` field. If the `header` instance is unavailable, it returns an empty string.
//
// Returns:
// - The `Type` as a string if available.
// - An empty string if the `header` instance is unavailable.
func (h *header) TypeN() string {
func (h *header) Type() string {
if !h.Available() {
return ""
}
Expand Down

0 comments on commit 91d463b

Please sign in to comment.