Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
fix: return basename or boolean from isEncoded (#91)
Browse files Browse the repository at this point in the history
The return type should be BaseName or false, remove the @returns
annotation and let the compiler figure it out.
  • Loading branch information
achingbrain authored Apr 7, 2021
1 parent d2c050f commit 5f9ebe8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ function decode (data) {
* Is the given data multibase encoded?
*
* @param {Uint8Array|string} data
* @returns {false | string}
*/
function isEncoded (data) {
if (data instanceof Uint8Array) {
Expand Down

0 comments on commit 5f9ebe8

Please sign in to comment.