Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Closure type annotation: encode never returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Jan 20, 2016
1 parent 8afe6d3 commit 50fa3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ if (typeof module !== "undefined" && module.exports) {
/**
* @param {string=} opt_string The string to encode.
* @param {Object=} options
* @return {Uint8Array} Encoded bytes, as a Uint8Array.
* @return {!Uint8Array} Encoded bytes, as a Uint8Array.
*/
TextEncoder.prototype.encode = function encode(opt_string, options) {
opt_string = opt_string ? String(opt_string) : '';
Expand Down

0 comments on commit 50fa3a5

Please sign in to comment.