mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #11654 from runcom/11650-syslog-close-redunant-nil-check
syslog Close() - Remove redunant nil check, s.writer cannot be nil
This commit is contained in:
commit
2717302cc6
1 changed files with 1 additions and 4 deletions
|
@ -36,10 +36,7 @@ func (s *Syslog) Log(msg *logger.Message) error {
|
|||
}
|
||||
|
||||
func (s *Syslog) Close() error {
|
||||
if s.writer != nil {
|
||||
return s.writer.Close()
|
||||
}
|
||||
return nil
|
||||
return s.writer.Close()
|
||||
}
|
||||
|
||||
func (s *Syslog) Name() string {
|
||||
|
|
Loading…
Reference in a new issue