Fix linting
authorSamuel Attard <samuel.r.attard@gmail.com>
Mon, 13 Mar 2017 00:00:10 +0000 (11:00 +1100)
committerSamuel Attard <samuel.r.attard@gmail.com>
Mon, 13 Mar 2017 00:00:10 +0000 (11:00 +1100)
atom/browser/ui/cocoa/atom_scrubber_data_source.h
lib/browser/api/touch-bar.js

index c2d6299..5ffcd50 100644 (file)
@@ -13,7 +13,7 @@
 #include "native_mate/persistent_dictionary.h"
 
 @interface AtomScrubberDataSource : NSObject<NSScrubberDataSource> {
- @protected
 @protected
   std::vector<mate::PersistentDictionary> items_;
 }
 
index 60a82f2..7f997ed 100644 (file)
@@ -232,7 +232,7 @@ TouchBar.TouchBarSegmentedControl = class TouchBarSegmentedControl extends Touch
 }
 
 TouchBar.TouchBarScrubber = class TouchBarScrubber extends TouchBarItem {
-  constructor(config) {
+  constructor (config) {
     super()
     if (config == null) config = {}
     const {items, onSelect, onHighlight} = config
@@ -242,9 +242,9 @@ TouchBar.TouchBarScrubber = class TouchBarScrubber extends TouchBarItem {
     if (typeof onSelect === 'function' || typeof onHighlight === 'function') {
       this.onInteraction = (details) => {
         if (details.type === 'select') {
-          onSelect(details.selectedIndex);
+          onSelect(details.selectedIndex)
         } else if (details.type === 'highlight') {
-          onHighlight(details.highlightedIndex);
+          onHighlight(details.highlightedIndex)
         }
       }
     }