File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,13 @@ func (l *Logger) LogErrorString(payload string) {
41
41
}
42
42
43
43
func (l * Logger ) Open () (errors []error ) {
44
- var err error
45
-
46
- err = l .accLogMan .Open ()
47
- if err != nil {
44
+ if err := l .accLogMan .Open (); err != nil {
48
45
errors = append (errors , err )
49
46
} else {
50
47
l .accLogMan .Enable ()
51
48
}
52
49
53
- err = l .errLogMan .Open ()
54
- if err != nil {
50
+ if err := l .errLogMan .Open (); err != nil {
55
51
errors = append (errors , err )
56
52
} else {
57
53
l .errLogMan .Enable ()
@@ -66,15 +62,11 @@ func (l *Logger) Close() {
66
62
}
67
63
68
64
func (l * Logger ) ReOpen () (errors []error ) {
69
- var err error
70
-
71
- err = l .accLogMan .ReOpen ()
72
- if err != nil {
65
+ if err := l .accLogMan .ReOpen (); err != nil {
73
66
errors = append (errors , err )
74
67
}
75
68
76
- err = l .errLogMan .ReOpen ()
77
- if err != nil {
69
+ if err := l .errLogMan .ReOpen (); err != nil {
78
70
errors = append (errors , err )
79
71
}
80
72
You can’t perform that action at this time.
0 commit comments