mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-03 22:03:36 +03:00
fix typo
This commit is contained in:
parent
1685c61e44
commit
5aebf27294
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/xtls/xray-core/common/signal/semaphore"
|
||||
)
|
||||
|
||||
// OnSuccess executes g() after f() returns nil.
|
||||
// OnSuccess executes g() after f() returns error.
|
||||
func OnSuccess(f func() error, g func() error) func() error {
|
||||
return func() error {
|
||||
if err := f(); err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue