diff --git a/database/build/build.go b/database/build/build.go index c5415e898..0ff9871bd 100644 --- a/database/build/build.go +++ b/database/build/build.go @@ -15,7 +15,7 @@ import ( type ( // config represents the settings required to create the engine that implements the BuildInterface interface. config struct { - // specifies the encryption key to use for the Repo engine + // specifies the encryption key to use for the Build engine EncryptionKey string // specifies to skip creating tables and indexes for the Build engine SkipCreation bool diff --git a/database/build/get.go b/database/build/get.go index 83e764c1c..a780b1721 100644 --- a/database/build/get.go +++ b/database/build/get.go @@ -32,8 +32,6 @@ func (e *engine) GetBuild(ctx context.Context, id int64) (*api.Build, error) { err = b.Repo.Decrypt(e.config.EncryptionKey) if err != nil { e.logger.Errorf("unable to decrypt repo: %v", err) - - return b.ToAPI(), nil } return b.ToAPI(), nil