nil 체크 추가
This commit is contained in:
@ -33,7 +33,10 @@ type MetricPipe struct {
|
||||
}
|
||||
|
||||
func (mp MetricPipe) Close() {
|
||||
mp.pipe.Close()
|
||||
if mp.pipe != nil {
|
||||
mp.pipe.Close()
|
||||
mp.pipe = nil
|
||||
}
|
||||
}
|
||||
|
||||
func (mp MetricPipe) writeLine(line string) {
|
||||
|
||||
Reference in New Issue
Block a user