Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: zoupingshi <[email protected]>
  • Loading branch information
zoupingshi committed May 31, 2024
1 parent 74b377b commit 4f3b009
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 4f3b009

Please sign in to comment.