Skip to content

Commit 2fe074d

Browse files
committed
found an error causing private gists to be public, woops!
1 parent 531bbeb commit 2fe074d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gist-put

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@ if (program.args.length === 0){
2626
// })
2727
}
2828

29+
2930
var privacy = ["anonymous", "public", "secret"]
30-
.some(function(d, i, arr){
31+
.filter(function(d, i, arr){
3132
privacy = arr[i]
3233
if (arr[i] == "secret"){
3334
return true
3435
}
3536
return program[d]
36-
})
37+
})[0]
38+
39+
console.log(privacy)
3740

3841

3942
post_gist(program.args, privacy, process.description, program.open)

0 commit comments

Comments
 (0)