Skip to content

Commit

Permalink
refactor: remove the leading space
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 committed Jan 6, 2022
1 parent 90def13 commit 4c8d139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *Client) NeedsUpdate(cliVersion string, skip bool) (bool, error) {

func (c *Client) validate(meta metadata.Metadata) error {
if db.SchemaVersion != meta.Version {
log.Logger.Error(" The local DB has an old schema version which is not supported by the current version of Trivy CLI. It needs to be updated.")
log.Logger.Error("The local DB has an old schema version which is not supported by the current version of Trivy CLI. It needs to be updated.")
return xerrors.New("--skip-update cannot be specified with the old DB schema.")
}
return nil
Expand Down

0 comments on commit 4c8d139

Please sign in to comment.