Modernize invertergui: MQTT write support, HA integration, UI updates
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
Some checks failed
build / inverter_gui_pipeline (push) Has been cancelled
This commit is contained in:
3
vendor/github.com/sirupsen/logrus/text_formatter.go
generated
vendored
3
vendor/github.com/sirupsen/logrus/text_formatter.go
generated
vendored
@@ -306,6 +306,7 @@ func (f *TextFormatter) needsQuoting(text string) bool {
|
||||
return false
|
||||
}
|
||||
for _, ch := range text {
|
||||
//nolint:staticcheck // QF1001: could apply De Morgan's law
|
||||
if !((ch >= 'a' && ch <= 'z') ||
|
||||
(ch >= 'A' && ch <= 'Z') ||
|
||||
(ch >= '0' && ch <= '9') ||
|
||||
@@ -334,6 +335,6 @@ func (f *TextFormatter) appendValue(b *bytes.Buffer, value interface{}) {
|
||||
if !f.needsQuoting(stringVal) {
|
||||
b.WriteString(stringVal)
|
||||
} else {
|
||||
b.WriteString(fmt.Sprintf("%q", stringVal))
|
||||
fmt.Fprintf(b, "%q", stringVal)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user