fix some typos (#976)

Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
cui fliter 2022-04-22 22:34:37 +08:00 committed by GitHub
parent 5424c7714f
commit 1293378c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View File

@ -737,7 +737,7 @@ func (r *ClickHouseReader) DeleteChannel(id string) *model.ApiError {
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for DELETE command to notification_channels\n", err)
zap.S().Errorf("Error in committing transaction for DELETE command to notification_channels\n", err)
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
}
@ -843,7 +843,7 @@ func (r *ClickHouseReader) EditChannel(receiver *am.Receiver, id string) (*am.Re
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for INSERT to notification_channels\n", err)
zap.S().Errorf("Error in committing transaction for INSERT to notification_channels\n", err)
return nil, &model.ApiError{Typ: model.ErrorInternal, Err: err}
}
@ -887,7 +887,7 @@ func (r *ClickHouseReader) CreateChannel(receiver *am.Receiver) (*am.Receiver, *
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for INSERT to notification_channels\n", err)
zap.S().Errorf("Error in committing transaction for INSERT to notification_channels\n", err)
return nil, &model.ApiError{Typ: model.ErrorInternal, Err: err}
}
@ -932,7 +932,7 @@ func (r *ClickHouseReader) CreateRule(rule string) *model.ApiError {
}
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for INSERT to rules\n", err)
zap.S().Errorf("Error in committing transaction for INSERT to rules\n", err)
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
}
return nil
@ -974,7 +974,7 @@ func (r *ClickHouseReader) EditRule(rule string, id string) *model.ApiError {
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for UPDATE to rules\n", err)
zap.S().Errorf("Error in committing transaction for UPDATE to rules\n", err)
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
}
@ -1020,7 +1020,7 @@ func (r *ClickHouseReader) DeleteRule(id string) *model.ApiError {
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for deleting rules\n", err)
zap.S().Errorf("Error in committing transaction for deleting rules\n", err)
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
}

View File

@ -68,7 +68,7 @@ func (mds *ModelDaoSqlite) UpdateUserPreferece(ctx context.Context, userPreferen
err = tx.Commit()
if err != nil {
zap.S().Errorf("Error in commiting transaction for INSERT to user_preferences\n", err)
zap.S().Errorf("Error in committing transaction for INSERT to user_preferences\n", err)
return &model.ApiError{Typ: model.ErrorInternal, Err: err}
}
telemetry.GetInstance().SetTelemetryAnonymous(userPreferences.GetIsAnonymous())

View File

@ -16,5 +16,5 @@ fi
if [ $? -ne 0 ]; then
echo "❌ Failed to delete HotROD sample application"
else
echo "✅ Succesfully deleted HotROD sample application"
echo "✅ Successfully deleted HotROD sample application"
fi

View File

@ -48,5 +48,5 @@ kubectl apply --namespace="${HOTROD_NAMESPACE}" -f <( \
if [ $? -ne 0 ]; then
echo "❌ Failed to deploy HotROD sample application"
else
echo "✅ Succesfully deployed HotROD sample application"
echo "✅ Successfully deployed HotROD sample application"
fi