Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit 7248d02

Browse files
committed
Fix getArchiveCheckout with no version
1 parent 76a9f1d commit 7248d02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dat/library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ exports.getArchiveCheckout = async function getArchiveCheckout (archive, version
411411
var isHistoric = false
412412
var isPreview = false
413413
var checkoutFS = archive
414-
if (typeof version !== 'undefined') {
414+
if (typeof version !== 'undefined' && version !== null) {
415415
let seq = parseInt(version)
416416
if (Number.isNaN(seq)) {
417417
if (version === 'latest') {

0 commit comments

Comments
 (0)