updated comments and ran linter on inferDuration

pull/4939/head
buzzinJohnnyBoi 2024-07-15 17:04:16 -04:00
parent 4836f72cb8
commit 30f7b48987
1 changed files with 4 additions and 4 deletions

View File

@ -312,10 +312,10 @@ class Maintenance extends BeanModel {
}
/**
* Calculate the maintenance duration
* @returns {number}
*/
* Calculate the maintenance duration
* @param {number} customDuration - The custom duration in milliseconds.
* @returns {number} The inferred duration in milliseconds.
*/
inferDuration(customDuration) {
// Check if duration is still in the window. If not, use the duration from the current time to the end of the window
if (customDuration > 0) {