Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #2070

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clair-error/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (e ErrBadNotification) Unwrap() error {
return e.E
}

// ErrDeleteNotification indicates an error while deleting notifcations.
// ErrDeleteNotification indicates an error while deleting notifications.
// The wrapped error will contain further details.
type ErrDeleteNotification struct {
NotificationID uuid.UUID
Expand Down
4 changes: 2 additions & 2 deletions notifier/postgres/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (e *e2e) Run(ctx context.Context, t *testing.T) {
for _, sub := range [...]subtest{
{name: "PutNotifications", do: e.PutNotifications},
{name: "Created", do: e.Created},
{name: "Notifications", do: e.Notifcations},
{name: "Notifications", do: e.Notifications},
{name: "SetDelivered", do: e.SetDelivered},
{name: "SetDeliveryFailed", do: e.SetDeliveryFailed},
{name: "SetDeleted", do: e.SetDeleted},
Expand Down Expand Up @@ -168,7 +168,7 @@ func (e *e2e) Created(ctx context.Context) func(*testing.T) {

// Notifications confirms the correct notifications were returned from the
// database when providing the notification ID.
func (e *e2e) Notifcations(ctx context.Context) func(*testing.T) {
func (e *e2e) Notifications(ctx context.Context) func(*testing.T) {
return func(t *testing.T) {
ctx := zlog.Test(ctx, t)
want := e.notificationID
Expand Down
2 changes: 1 addition & 1 deletion notifier/processor_safe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func testUnsafeStaleUOID(t *testing.T) {
}
}

// testSafeDuplications confirms the guard against creating
// testUnsafeDuplications confirms the guard against creating
// duplicate notifications works correctly.
func testUnsafeDuplications(t *testing.T) {
ctx := zlog.Test(context.Background(), t)
Expand Down
Loading