fixes from review

This commit is contained in:
Shelley Vohr 2017-12-11 18:20:12 -05:00
parent 027e78639a
commit a8e67e7f61
No known key found for this signature in database
GPG key ID: F13993A75599653C
2 changed files with 15 additions and 26 deletions

View file

@ -150,7 +150,6 @@ void SystemPreferences::RegisterDefaults(mate::Arguments* args) {
if(!args->GetNext(&value)) {
args->ThrowError("Invalid userDefault data provided");
} else {
args->GetNext(&value);
@try {
NSDictionary* dict = DictionaryValueToNSDictionary(value);
[[NSUserDefaults standardUserDefaults] registerDefaults:dict];