Minor formatting tweaks
authorKevin Sawicki <kevinsawicki@gmail.com>
Wed, 26 Oct 2016 00:55:34 +0000 (09:55 +0900)
committerKevin Sawicki <kevinsawicki@gmail.com>
Wed, 26 Oct 2016 00:55:34 +0000 (09:55 +0900)
atom/browser/api/atom_api_window.cc
atom/browser/native_window_mac.mm
docs/api/browser-window.md

index ae37f504cad05a6111df02d42b8fcff851d3422b..88b0459c26db4a2d8a69caa693aecf57c9745650 100644 (file)
@@ -731,9 +731,8 @@ void Window::SetAspectRatio(double aspect_ratio, mate::Arguments* args) {
 
 void Window::PreviewFile(const std::string& path, mate::Arguments* args) {
   std::string display_name;
-  if (!args->GetNext(&display_name)) {
+  if (!args->GetNext(&display_name))
     display_name = path;
-  }
   window_->PreviewFile(path, display_name);
 }
 
index d9de9bd3ca150726ff2e55afa72ae2fa84cbe7ed..95423e0851e47c90393b74944c1eb6a1baaace47 100644 (file)
@@ -4,8 +4,8 @@
 
 #include "atom/browser/native_window_mac.h"
 
-#include <string>
 #include <Quartz/Quartz.h>
+#include <string>
 
 #include "atom/browser/window_list.h"
 #include "atom/common/color_util.h"
index b891396dba48c0b59379d81feac4729543396e2f..059c9f152de03b4da73cae7391f584804105a187 100644 (file)
@@ -664,11 +664,11 @@ the player itself we would call this function with arguments of 16/9 and
 are within the content view--only that they exist. Just sum any extra width and
 height areas you have within the overall content view.
 
-#### `win.previewFile(pathname[, displayName])` _macOS_
+#### `win.previewFile(path[, displayName])` _macOS_
 
 * `path` String - The absolute path to the file to preview with QuickLook. This
-  is important as Quick Look uses the file name and file extension on the path to
-  determine the content type of the file to open.
+  is important as Quick Look uses the file name and file extension on the path
+  to determine the content type of the file to open.
 * `displayName` String (Optional) - The name of the file to display on the
   Quick Look modal view. This is purely visual and does not affect the content
   type of the file. Defaults to `path`.