File: fix-count-bug.patch

package info (click to toggle)
node-temp 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 160 kB
  • sloc: makefile: 6; sh: 2
file content (15 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: upstream forgot to increment counter
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2019-01-10
Forwarded: https://github.com/bruce/node-temp/pull/79
--- a/lib/temp.js
+++ b/lib/temp.js
@@ -177,7 +177,7 @@
       left = 0;
       return;
     } else {
-      count;
+      count++;
     }
     left--;
     if (!left && callback) {