repair fixes
This commit is contained in:
@@ -8,10 +8,15 @@ import (
|
||||
)
|
||||
|
||||
func (rd *RealDebrid) UnrestrictUntilOk(link string) *UnrestrictResponse {
|
||||
unrestrictFn := func() (*UnrestrictResponse, error) {
|
||||
if link == "" {
|
||||
return nil
|
||||
}
|
||||
unrestrictFn := func(link string) (*UnrestrictResponse, error) {
|
||||
return rd.UnrestrictLink(link)
|
||||
}
|
||||
return retryUntilOk(unrestrictFn)
|
||||
return retryUntilOk(func() (*UnrestrictResponse, error) {
|
||||
return unrestrictFn(link)
|
||||
})
|
||||
}
|
||||
|
||||
func retryUntilOk[T any](fn func() (T, error)) T {
|
||||
|
||||
Reference in New Issue
Block a user