11'use babel'
22/*
33 * decaffeinate suggestions:
4- * DS102: Remove unnecessary code created because of implicit returns
54 * DS207: Consider shorter variations of null checks
65 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
76 */
@@ -37,16 +36,16 @@ export default SelectionCountView = class SelectionCountView {
3736 if ( this . configSubscription != null ) {
3837 this . configSubscription . dispose ( ) ;
3938 }
40- return this . tooltipDisposable . dispose ( ) ;
39+ this . tooltipDisposable . dispose ( ) ;
4140 }
4241
4342 subscribeToConfig ( ) {
4443 if ( this . configSubscription != null ) {
4544 this . configSubscription . dispose ( ) ;
4645 }
47- return this . configSubscription = atom . config . observe ( 'status-bar.selectionCountFormat' , value => {
46+ this . configSubscription = atom . config . observe ( 'status-bar.selectionCountFormat' , value => {
4847 this . formatString = value != null ? value : '(%L, %C)' ;
49- return this . scheduleUpdateCount ( ) ;
48+ this . scheduleUpdateCount ( ) ;
5049 } ) ;
5150 }
5251
@@ -57,7 +56,7 @@ export default SelectionCountView = class SelectionCountView {
5756 const activeEditor = this . getActiveTextEditor ( ) ;
5857 const selectionsMarkerLayer = activeEditor != null ? activeEditor . selectionsMarkerLayer : undefined ;
5958 this . selectionSubscription = selectionsMarkerLayer != null ? selectionsMarkerLayer . onDidUpdate ( this . scheduleUpdateCount . bind ( this ) ) : undefined ;
60- return this . scheduleUpdateCount ( ) ;
59+ this . scheduleUpdateCount ( ) ;
6160 }
6261
6362 getActiveTextEditor ( ) {
@@ -67,9 +66,9 @@ export default SelectionCountView = class SelectionCountView {
6766 scheduleUpdateCount ( ) {
6867 if ( ! this . scheduledUpdate ) {
6968 this . scheduledUpdate = true ;
70- return atom . views . updateDocument ( ( ) => {
69+ atom . views . updateDocument ( ( ) => {
7170 this . updateCount ( ) ;
72- return this . scheduledUpdate = false ;
71+ this . scheduledUpdate = false ;
7372 } ) ;
7473 }
7574 }
@@ -91,10 +90,10 @@ export default SelectionCountView = class SelectionCountView {
9190 if ( rangeEndColumn === 0 ) { lineCount -= 1 ; }
9291 if ( count > 0 ) {
9392 this . element . textContent = this . formatString . replace ( '%L' , lineCount ) . replace ( '%C' , count ) ;
94- return this . tooltipElement . textContent = `${ _ . pluralize ( lineCount , 'line' ) } , ${ _ . pluralize ( count , 'character' ) } selected` ;
93+ this . tooltipElement . textContent = `${ _ . pluralize ( lineCount , 'line' ) } , ${ _ . pluralize ( count , 'character' ) } selected` ;
9594 } else {
9695 this . element . textContent = '' ;
97- return this . tooltipElement . textContent = '' ;
96+ this . tooltipElement . textContent = '' ;
9897 }
9998 }
10099} ;
0 commit comments