Skip to content

Commit d3392ac

Browse files
authored
Merge pull request #20 from russell/patch-2
Handle empty path map
2 parents b902861 + 1bb067b commit d3392ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/beautifier.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const md = require('markdown-it')();
55
const curlGenerator = require('./curl-builder');
66

77
const sharedStart = (array) => {
8+
if (array.length == 0) { return ''; }
89
const A = array.concat().sort();
910
const a1 = A[0], a2 = A[A.length - 1], L = a1.length;
1011
let i = 0;

0 commit comments

Comments
 (0)