@@ -3,7 +3,7 @@ import { UI } from "sketch";
33import { getCurrentBranch , checkForFile , exec , executeSafely } from "../common" ;
44import WebUI from "sketch-module-web-view" ;
55
6- export default function ( ) {
6+ export default function ( ) {
77 if ( ! checkForFile ( ) ) {
88 return ;
99 }
@@ -26,7 +26,7 @@ export default function() {
2626 minimizable : false ,
2727 maximizable : false ,
2828 titleBarStyle : "hidden" ,
29- show : false
29+ show : false ,
3030 } ) ;
3131
3232 webUI . loadURL ( require ( "../../Resources/branches.html" ) ) ;
@@ -42,23 +42,23 @@ export default function() {
4242 webUI . webContents . executeJavaScript ( "window.ready=true" ) ;
4343 } ) ;
4444
45- webUI . webContents . on ( "checkoutBranch" , name => {
46- executeSafely ( function ( ) {
45+ webUI . webContents . on ( "checkoutBranch" , ( name ) => {
46+ executeSafely ( function ( ) {
4747 exec ( `git checkout -q ${ name } ` ) ;
4848 const app = NSApp . delegate ( ) ;
4949 app . refreshCurrentDocument ( ) ;
5050 webUI . close ( ) ;
5151 UI . message ( `Switched to branch '${ name } '` ) ;
5252 } ) ;
5353 } ) ;
54- webUI . webContents . on ( "deleteBranch" , name => {
55- executeSafely ( function ( ) {
54+ webUI . webContents . on ( "deleteBranch" , ( name ) => {
55+ executeSafely ( function ( ) {
5656 exec ( `git branch -d ${ name } ` ) ;
5757 UI . message ( `Deleted branch '${ name } '` ) ;
5858 } ) ;
5959 } ) ;
6060 webUI . webContents . on ( "createBranch" , ( ) => {
61- executeSafely ( function ( ) {
61+ executeSafely ( function ( ) {
6262 UI . getInputFromUser (
6363 "New Branch Name" ,
6464 { okButton : "Create Branch" } ,
0 commit comments