From d3f42b2fc139e557398c3d3b88892272f325e075 Mon Sep 17 00:00:00 2001 From: Sanjana Rajan <srajan1@stanford.edu> Date: Thu, 8 Mar 2018 15:36:40 +0100 Subject: [PATCH] update comments --- src/key.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/key.js b/src/key.js index 114915fa..c0a8ee83 100644 --- a/src/key.js +++ b/src/key.js @@ -445,8 +445,8 @@ Key.prototype.verifyPrimaryKey = async function(date=new Date()) { }; /** - * Returns the expiration time of the primary key or null if key does not expire - * @returns {Date|null} + * Returns the expiration time of the primary key or Infinity if key does not expire + * @returns {Date} */ Key.prototype.getExpirationTime = async function() { if (this.primaryKey.version === 3) { @@ -960,8 +960,8 @@ SubKey.prototype.verify = async function(primaryKey, date=new Date()) { }; /** - * Returns the expiration time of the subkey or null if key does not expire - * @returns {Date|null} + * Returns the expiration time of the subkey or Infinity if key does not expire + * @returns {Date} */ SubKey.prototype.getExpirationTime = function() { let highest;