Skip to content

Commit

Permalink
Add missing type annotations on instance properties
Browse files Browse the repository at this point in the history
RELNOTES: n/a
PiperOrigin-RevId: 573252948
Change-Id: I41eb6ccbf6e2d781983a39badad4f8f668cf4e0f
  • Loading branch information
lauraharker authored and copybara-github committed Oct 13, 2023
1 parent 9633894 commit 30ecedf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions closure/goog/crypt/hmac.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ goog.crypt.Hmac = function(hasher, key, opt_blockSize) {
*/
this.hasher_ = hasher;

/** @const {number} */
this.blockSize = opt_blockSize || hasher.blockSize || 16;

/**
Expand Down
1 change: 1 addition & 0 deletions closure/goog/crypt/md5.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ goog.crypt.Md5 = function() {
'use strict';
goog.crypt.Md5.base(this, 'constructor');

/** @const {number} */
this.blockSize = 512 / 8;

/**
Expand Down
1 change: 1 addition & 0 deletions closure/goog/crypt/sha1.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ goog.crypt.Sha1 = function() {
'use strict';
goog.crypt.Sha1.base(this, 'constructor');

/** @const {number} */
this.blockSize = 512 / 8;

/**
Expand Down
1 change: 1 addition & 0 deletions closure/goog/crypt/sha2.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ goog.crypt.Sha2 = function(numHashBlocks, initHashBlocks) {
'use strict';
goog.crypt.Sha2.base(this, 'constructor');

/** @const {number} */
this.blockSize = goog.crypt.Sha2.BLOCKSIZE_;

/**
Expand Down

0 comments on commit 30ecedf

Please sign in to comment.