From 8fd0aa162bb847c1a81e84920b2e4a04daf41d62 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 24 Feb 2016 18:00:36 -0500 Subject: [PATCH] various: spelling corrections --- database/database.go | 2 +- database/pgsql/layer.go | 2 +- notifier/notifier.go | 2 +- worker/worker.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database/database.go b/database/database.go index d192c376..cf30cb82 100644 --- a/database/database.go +++ b/database/database.go @@ -64,7 +64,7 @@ type Datastore interface { // necessary. A vulnerability is uniquely identified by its Namespace and its Name. // The FixedIn field may only contain a partial list of Features that are affected by the // Vulnerability, along with the version in which the vulnerability is fixed. It is the - // responsability of the implementation to update the list properly. A version equals to + // responsibility of the implementation to update the list properly. A version equals to // types.MinVersion means that the given Feature is not being affected by the Vulnerability at // all and thus, should be removed from the list. It is important that Features should be unique // in the FixedIn list. For example, it doesn't make sense to have two `openssl` Feature listed as diff --git a/database/pgsql/layer.go b/database/pgsql/layer.go index 297a86ec..d5e2e88c 100644 --- a/database/pgsql/layer.go +++ b/database/pgsql/layer.go @@ -226,7 +226,7 @@ func (pgSQL *pgSQL) InsertLayer(layer database.Layer) error { return err } else if err == nil { if existingLayer.EngineVersion >= layer.EngineVersion { - // The layer exists and has an equal or higher engine verison, do nothing. + // The layer exists and has an equal or higher engine version, do nothing. return nil } diff --git a/notifier/notifier.go b/notifier/notifier.go index 409104c1..81e480cd 100644 --- a/notifier/notifier.go +++ b/notifier/notifier.go @@ -154,7 +154,7 @@ func findTask(datastore database.Datastore, renotifyInterval time.Duration, whoA // Find a notification to send. notification, err := datastore.GetAvailableNotification(renotifyInterval) if err != nil { - // There is no notification or an error occured. + // There is no notification or an error occurred. if err != cerrors.ErrNotFound { log.Warningf("could not get notification to send: %s", err) } diff --git a/worker/worker.go b/worker/worker.go index eb49c6eb..74824679 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -140,7 +140,7 @@ func detectContent(name, path, imageFormat string, parent *database.Layer) (name // If there are no feature detected, use parent's features if possible. // TODO(Quentin-M): We eventually want to give the choice to each detectors to use none/some - // parent's Features. It would be useful for dectectors that can't find their entire result using + // parent's Features. It would be useful for detectors that can't find their entire result using // one Layer. if len(features) == 0 && parent != nil { features = parent.Features