Commit 6af9cbd7 authored by metacertain's avatar metacertain Committed by GitHub

Suppress linter (#1659)

cmd: explicitly discard returned values from winlogs
parent 372b8630
...@@ -58,27 +58,27 @@ func (l *windowsEventLogger) Debug(args ...interface{}) { ...@@ -58,27 +58,27 @@ func (l *windowsEventLogger) Debug(args ...interface{}) {
} }
func (l *windowsEventLogger) Infof(format string, args ...interface{}) { func (l *windowsEventLogger) Infof(format string, args ...interface{}) {
l.winlog.Info(1633, fmt.Sprintf(format, args...)) _ = l.winlog.Info(1633, fmt.Sprintf(format, args...))
} }
func (l *windowsEventLogger) Info(args ...interface{}) { func (l *windowsEventLogger) Info(args ...interface{}) {
l.winlog.Info(1633, fmt.Sprint(args...)) _ = l.winlog.Info(1633, fmt.Sprint(args...))
} }
func (l *windowsEventLogger) Warningf(format string, args ...interface{}) { func (l *windowsEventLogger) Warningf(format string, args ...interface{}) {
l.winlog.Warning(1633, fmt.Sprintf(format, args...)) _ = l.winlog.Warning(1633, fmt.Sprintf(format, args...))
} }
func (l *windowsEventLogger) Warning(args ...interface{}) { func (l *windowsEventLogger) Warning(args ...interface{}) {
l.winlog.Warning(1633, fmt.Sprint(args...)) _ = l.winlog.Warning(1633, fmt.Sprint(args...))
} }
func (l *windowsEventLogger) Errorf(format string, args ...interface{}) { func (l *windowsEventLogger) Errorf(format string, args ...interface{}) {
l.winlog.Error(1633, fmt.Sprintf(format, args...)) _ = l.winlog.Error(1633, fmt.Sprintf(format, args...))
} }
func (l *windowsEventLogger) Error(args ...interface{}) { func (l *windowsEventLogger) Error(args ...interface{}) {
l.winlog.Error(1633, fmt.Sprint(args...)) _ = l.winlog.Error(1633, fmt.Sprint(args...))
} }
func (l *windowsEventLogger) WithField(key string, value interface{}) *logrus.Entry { func (l *windowsEventLogger) WithField(key string, value interface{}) *logrus.Entry {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment