mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-10-27 14:09:58 -04:00
Re-order ParseConfig offlineMode check to fail earlier
This commit is contained in:
1 parent
6e74e37e5b
commit
c2fc911693
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ func ParseConfig(valuesRequested [][2]string) ([]string, error) {
|
|||||||
config = append(config, value)
|
config = append(config, value)
|
||||||
|
|
||||||
// notify requester immediately if in offline mode
|
// 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
|
return config, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user