various: spelling corrections
This commit is contained in:
parent
548a2be262
commit
8fd0aa162b
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user