mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
Re-order ParseConfig offlineMode check to fail earlier
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user