Skip to content

Commit b026f34

Browse files
author
Kostas Petrakis
committed
chore(golang): fix error handling for upgrade
1 parent 471f47a commit b026f34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/impls/logruslog/init.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"time"
2525

2626
"github.com/apache/incubator-devlake/core/config"
27-
"github.com/apache/incubator-devlake/core/errors"
2827
"github.com/apache/incubator-devlake/core/log"
2928
"github.com/sirupsen/logrus"
3029
)
@@ -75,8 +74,7 @@ func init() {
7574
panic(err)
7675
}
7776
basePath = filepath.Join(abs, "devlake.log")
78-
var err errors.Error
79-
Global, err = NewDefaultLogger(inner)
77+
Global, err := NewDefaultLogger(inner)
8078
if err != nil {
8179
panic(err)
8280
}

0 commit comments

Comments
 (0)