mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
chore: add LICENSE GPLv2-or-later (#897)
* chore: add LICENSE * chore: add LICENSE to README
This commit is contained in:
parent
fbdeedc74c
commit
604c7896bd
247 changed files with 1303 additions and 33 deletions
|
@ -1,3 +1,6 @@
|
|||
// Copyright (c) 2021 - 2023, Ludvig Lundgren and the autobrr contributors.
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
package errors
|
||||
|
||||
import (
|
||||
|
@ -117,11 +120,11 @@ func callers(skip int) []uintptr {
|
|||
//
|
||||
// Example:
|
||||
//
|
||||
// func Do() (err error) {
|
||||
// defer func() {
|
||||
// errors.RecoverPanic(recover(), &err)
|
||||
// }()
|
||||
// }
|
||||
// func Do() (err error) {
|
||||
// defer func() {
|
||||
// errors.RecoverPanic(recover(), &err)
|
||||
// }()
|
||||
// }
|
||||
func RecoverPanic(r interface{}, errPtr *error) {
|
||||
var err error
|
||||
if r != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue