Skip to content

Commit

Permalink
refactor: change invalid method name
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Nov 27, 2023
1 parent cd5413b commit f70cf45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/symbol/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (t *Table) free(id ulid.ULID) (*Symbol, error) {
}

func (t *Table) load(sym *Symbol) error {
if t.shouldSkipLink(sym) {
if t.shouldSkipLoad(sym) {
return nil
}
for _, hook := range t.loadHooks {
Expand All @@ -324,7 +324,7 @@ func (t *Table) load(sym *Symbol) error {
}

func (t *Table) unload(sym *Symbol) error {
if t.shouldSkipLink(sym) {
if t.shouldSkipLoad(sym) {
return nil
}
for _, hook := range t.unloadHooks {
Expand All @@ -335,6 +335,6 @@ func (t *Table) unload(sym *Symbol) error {
return nil
}

func (t *Table) shouldSkipLink(sym *Symbol) bool {
func (t *Table) shouldSkipLoad(sym *Symbol) bool {
return len(t.unlinks[sym.ID()]) > 0
}

0 comments on commit f70cf45

Please sign in to comment.