[Pkg-javascript-commits] [node-hash-base] 01/06: Rename initialised_ to _initialised

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:21:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to annotated tag v2.0.0
in repository node-hash-base.

commit 6e458c69f9cf124758f68a01a8232fc7c3269945
Author: Kirill Fomichev <fanatid at ya.ru>
Date:   Mon Apr 4 21:01:35 2016 +0300

    Rename initialised_ to _initialised
---
 index.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 5599960..a3b23e6 100644
--- a/index.js
+++ b/index.js
@@ -4,7 +4,7 @@ var inherits = require('inherits')
 
 function HashBase () {
   Transform.call(this)
-  this.initialised_ = true
+  this._initialised = true
 }
 
 inherits(HashBase, Transform)
@@ -23,8 +23,8 @@ HashBase.prototype.update = function (data, encoding) {
 }
 
 HashBase.prototype.digest = function (encoding) {
-  if (!this.initialised_) throw new Error('Not initialized')
-  this.initialised_ = false
+  if (!this._initialised) throw new Error('Not initialized')
+  this._initialised = false
 
   var digest = this._digest()
   if (encoding === undefined) encoding = HashBase.DEFAULT_ENCODING

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-hash-base.git



More information about the Pkg-javascript-commits mailing list