Skip to content

Commit 377a891

Browse files
committed
rm manual flag sets, we use flags
1 parent fe51c7f commit 377a891

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

samples/main-db-sample.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"errors"
55
"fmt"
6-
"os"
76

87
"github.com/lainio/err2"
98
"github.com/lainio/err2/try"
@@ -36,9 +35,6 @@ func (db *Database) MoneyTransfer(from, to *Account, amount int) (err error) {
3635
}
3736

3837
func doDBMain() {
39-
err2.SetErrorTracer(os.Stderr)
40-
err2.SetErrorTracer(nil) // <- out-comment/rm to get automatic error traces
41-
4238
defer err2.Catch("CATCH Warning: %s", "test-name")
4339

4440
db, from, to := new(Database), new(Account), new(Account)

0 commit comments

Comments
 (0)