File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class StatDate {
55 constructor ( start , end ) {
66 this . #start = StatDate . formatStart ( start ) ;
77 this . #end = StatDate . formatEnd ( end ) ;
8- if ( this . #start >= this . #end) {
8+ if ( this . #start > this . #end) {
99 throw new Error ( "start must be before end" ) ;
1010 }
1111 }
@@ -17,7 +17,7 @@ class StatDate {
1717 set start ( start ) {
1818 start = StatDate . formatStart ( start ) ;
1919 if ( this . end && start ) {
20- if ( start <= this . end ) {
20+ if ( start > this . end ) {
2121 throw new Error ( "start must be before end" ) ;
2222 }
2323 }
@@ -31,7 +31,7 @@ class StatDate {
3131 set end ( end ) {
3232 end = StatDate . formatEnd ( end ) ;
3333 if ( this . start && end ) {
34- if ( this . start <= end ) {
34+ if ( this . start > end ) {
3535 throw new Error ( "start must be before end" ) ;
3636 }
3737 }
Original file line number Diff line number Diff line change @@ -229,8 +229,6 @@ class WriteNpmStat {
229229 }
230230 Promise . all ( csvFilesReady ) . then ( ( ) => {
231231 for ( const [ key ] of Object . entries ( stats ) ) {
232- console . log ( csvFiles ) ;
233- console . log ( key ) ;
234232 if ( csvFiles [ key ] ) {
235233 stats [ key ] = csvFiles [ key ] . concat ( stats [ key ] ) ;
236234 }
You can’t perform that action at this time.
0 commit comments