Re-order ParseConfig offlineMode check to fail earlier

This commit is contained in:
2025-05-30 13:53:51 +00:00
parent 6e74e37e5b
commit c2fc911693
+1 -1
View File
@@ -38,7 +38,7 @@ func ParseConfig(valuesRequested [][2]string) ([]string, error) {
config = append(config, value)
// notify requester immediately if in offline mode
if pair[0] == "LIBMUTTON" && pair[1] == "offlineMode" && value == "true" {
if pair[1] == "offlineMode" && pair[0] == "LIBMUTTON" && value == "true" {
return config, nil
}
}