File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11"use strict" ;
22function dirReducer ( dir ) {
3- if ( ! atom ) {
4- throw new Error ( 'No project directory found. Atom may not be initialized.' ) ;
5- }
63 if ( atom && atom . project . rootDirectories . length > 0 ) {
74 return atom . project . rootDirectories [ 0 ] . path ;
85 }
6+ return '' ;
97}
108Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
119exports . default = dirReducer ;
Original file line number Diff line number Diff line change 55 */
66export default function dirReducer (
77 dir : string
8- ) : string | void {
9- if ( ! atom ) {
10- throw new Error ( 'No project directory found. Atom may not be initialized.' ) ;
11- }
8+ ) : string {
129 if ( atom && atom . project . rootDirectories . length > 0 ) {
1310 return atom . project . rootDirectories [ 0 ] . path ;
1411 }
12+ return '' ;
1513}
You can’t perform that action at this time.
0 commit comments