From 67d58cf98990c15f46ffe54584025d357029c98a Mon Sep 17 00:00:00 2001 From: overallteach Date: Sat, 4 May 2024 19:41:03 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: overallteach --- installer/data/archlinux | 2 +- installer/installer.sh | 2 +- .../protocols/common/handle-protocol-message-command.js | 2 +- test/bdd/steps/hooks.mjs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/data/archlinux b/installer/data/archlinux index b162afcbc..5b79eabc2 100644 --- a/installer/data/archlinux +++ b/installer/data/archlinux @@ -34,7 +34,7 @@ install_sql() { if [[ -d "/var/lib/mysql/operationaldb/" ]]; then read -p "Old operationaldb repository detected. Would you like to overwrite it ? (Default: No) [Y]es [N]o [E]xit " choice case "$choice" in - [yY]* ) perform_step $(MYSQL_PWD=$oldpassword $sql -u root -e "DROP DATABASE IF EXISTS operationaldb;") "Overwritting slq repository";; + [yY]* ) perform_step $(MYSQL_PWD=$oldpassword $sql -u root -e "DROP DATABASE IF EXISTS operationaldb;") "Overwriting slq repository";; [eE]* ) text_color $RED"Installer stopped by user"; exit;; * ) text_color $GREEN"Keeping previous sql repository"; NEW_DB=FALSE;; esac diff --git a/installer/installer.sh b/installer/installer.sh index 364dad676..a0cf58aba 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -212,7 +212,7 @@ install_sql() { if [[ -d "/var/lib/mysql/operationaldb/" ]]; then read -p "Old operationaldb repository detected. Would you like to overwrite it ? (Default: No) [Y]es [N]o [E]xit " choice case "$choice" in - [yY]* ) perform_step $(MYSQL_PWD=$oldpassword $sql -u root -e "DROP DATABASE IF EXISTS operationaldb;") "Overwritting slq repository";; + [yY]* ) perform_step $(MYSQL_PWD=$oldpassword $sql -u root -e "DROP DATABASE IF EXISTS operationaldb;") "Overwriting slq repository";; [eE]* ) text_color $RED"Installer stopped by user"; exit;; * ) text_color $GREEN"Keeping previous sql repository"; NEW_DB=FALSE;; esac diff --git a/src/commands/protocols/common/handle-protocol-message-command.js b/src/commands/protocols/common/handle-protocol-message-command.js index 447736261..105eb46ed 100644 --- a/src/commands/protocols/common/handle-protocol-message-command.js +++ b/src/commands/protocols/common/handle-protocol-message-command.js @@ -138,7 +138,7 @@ class HandleProtocolMessageCommand extends Command { const blockchainAssertionSizeInKb = blockchainAssertionSize / BYTES_IN_KILOBYTE; if (!agreementData) { this.logger.warn( - `Unable to fetch agreement data in handle protocol messsage command for agreement id: ${agreementId}, blockchain id: ${blockchain}`, + `Unable to fetch agreement data in handle protocol message command for agreement id: ${agreementId}, blockchain id: ${blockchain}`, ); return { errorMessage: 'Unable to fetch agreement data.', diff --git a/test/bdd/steps/hooks.mjs b/test/bdd/steps/hooks.mjs index b62f088bd..64ca94925 100644 --- a/test/bdd/steps/hooks.mjs +++ b/test/bdd/steps/hooks.mjs @@ -101,7 +101,7 @@ After(function afterMethod(testCase, done) { testCase.result.status, ' and duration: ', testCase.result.duration, - ' miliseconds.', + ' milliseconds.', ); done(); });