Skip to content

Commit

Permalink
fix: fix issue with get(name, null, options) call not meeting expecta…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
csg01123119 committed Aug 13, 2024
1 parent f1b24dd commit 09ec7a5
Show file tree
Hide file tree
Showing 4 changed files with 3,658 additions and 1,274 deletions.
3 changes: 2 additions & 1 deletion lib/common/object/get.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fs = require('fs');
const is = require('is-type-of');
const { isObject } = require('../utils/isObject');

const proto = exports;
/**
Expand All @@ -18,7 +19,7 @@ proto.get = async function get(name, file, options = {}) {
} else if (is.string(file)) {
writeStream = fs.createWriteStream(file);
needDestroy = true;
} else if (is.object(file)) {
} else if (isObject(file)) {
// get(name, options)
options = file;
}
Expand Down
Loading

0 comments on commit 09ec7a5

Please sign in to comment.