Skip to content

Commit

Permalink
Chore: Use a more direct and less error-prone return value (#4008)
Browse files Browse the repository at this point in the history
Signed-off-by: pinglanlu <[email protected]>
  • Loading branch information
pinglanlu authored Nov 12, 2024
1 parent 48ac662 commit 7b4a686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proxy/vmess/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (v *TimedUserValidator) GetAEAD(userHash []byte) (*protocol.MemoryUser, boo
if err != nil {
return nil, false, err
}
return userd.(*protocol.MemoryUser), true, err
return userd.(*protocol.MemoryUser), true, nil
}

func (v *TimedUserValidator) Remove(email string) bool {
Expand Down
2 changes: 1 addition & 1 deletion transport/internet/tls/config_other.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ func (c *Config) getCertPool() (*x509.CertPool, error) {
return nil, errors.New("append cert to root").AtWarning().Base(err)
}
}
return pool, err
return pool, nil
}

0 comments on commit 7b4a686

Please sign in to comment.