mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove redunant nil check, s.writer cannot be nil
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
parent
65e21f5703
commit
e600df2d97
1 changed files with 1 additions and 4 deletions
|
@ -43,10 +43,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…
Add table
Reference in a new issue