update comments

This commit is contained in:
Sanjana Rajan 2018-03-08 15:36:40 +01:00
parent c5b5bf7826
commit d3f42b2fc1

View File

@ -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;