From e3e857720c73acffbd6baa82bc1006a1a4bcd4e9 Mon Sep 17 00:00:00 2001 From: Hung-Wei Hung Date: Tue, 6 Dec 2022 14:09:26 +0800 Subject: [PATCH] fix: typo shoud -> should --- solutions/automations/vacation-calendar/Code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/automations/vacation-calendar/Code.js b/solutions/automations/vacation-calendar/Code.js index d9fbb8c35..aae6ae781 100644 --- a/solutions/automations/vacation-calendar/Code.js +++ b/solutions/automations/vacation-calendar/Code.js @@ -134,7 +134,7 @@ function findEvents(user, keyword, start, end, optSince) { continue; } events = events.concat(response.items.filter(function(item) { - return shoudImportEvent(user, keyword, item); + return shouldImportEvent(user, keyword, item); })); pageToken = response.nextPageToken; } while (pageToken); @@ -149,7 +149,7 @@ function findEvents(user, keyword, start, end, optSince) { * @param {Calendar.Event} event The event being considered. * @return {boolean} True if the event should be imported. */ -function shoudImportEvent(user, keyword, event) { +function shouldImportEvent(user, keyword, event) { // Filters out events where the keyword did not appear in the summary // (that is, the keyword appeared in a different field, and are thus // is not likely to be relevant).