From 17c08889321a3e2d002f4b63eac056dc3b940086 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 22 Aug 2014 15:05:30 +0800 Subject: [PATCH] Make print settings optional. --- atom/browser/api/atom_api_window.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index 65f7841f7658..9b7cb204df3b 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -34,9 +34,8 @@ struct Converter { mate::Dictionary dict; if (!ConvertFromV8(isolate, val, &dict)) return false; - if (!dict.Get("silent", &(out->silent)) || - !dict.Get("printBackground", &(out->print_backgournd))) - return false; + dict.Get("silent", &(out->silent)); + dict.Get("printBackground", &(out->print_backgournd)); return true; } };