We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed584d commit 3808db2Copy full SHA for 3808db2
lib/utils/normalize_options.js
@@ -7,12 +7,12 @@ var NodeGit = require("../../");
7
* @return {Object} An Oid instance.
8
*/
9
function normalizeOptions(options, Ctor) {
10
- var instance = options instanceof Ctor ? options : new Ctor();
11
-
12
if (!options) {
13
return null;
14
}
15
+ var instance = options instanceof Ctor ? options : new Ctor();
+
16
Object.keys(options).forEach(function(key) {
17
instance[key] = options[key];
18
});
0 commit comments