1
0
Fork 0
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:
Alexander Morozov 2015-03-23 12:32:26 -07:00
commit 2717302cc6

View file

@ -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 {