We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5157cbb commit f71ec77Copy full SHA for f71ec77
1 file changed
lib/oid.js
@@ -38,14 +38,13 @@ var Oid = exports.Oid = function(arg) {
38
}
39
40
Oid.prototype.toString = function() {
41
- //var _str = new FFI.Pointer(FFI.Bindings.POINTER_SIZE);
42
var _str = new FFI.Pointer(41);
43
libgit2.git_oid_fmt(_str, this.coid);
44
var buff = new Buffer(40);
45
for(i=0; i<40; ++i) {
46
buff[i] = _str.seek(i).getUInt8();
47
48
- delete _ostr
+ delete _str
49
return buff.toString('utf8')
50
51
0 commit comments