diff --git a/lib/service/function_test.go b/lib/service/function_test.go index 983e87f1..bb37fb89 100644 --- a/lib/service/function_test.go +++ b/lib/service/function_test.go @@ -254,7 +254,7 @@ func TestUpdateNameOnlySingleExistingFunction(t *testing.T) { Image: &asset.Addressable{StorageAddress: "test/storage/address", Checksum: "4c67ad88309a48b48bc4c2e2c1a87a83"}, } - // Not given image is equivalent to give Image: &asset.Addressable{StorageAddress: "", Checksum: ""}. Update an image with blank value will be ignored. + // Not giving an image is equivalent to giving Image: &asset.Addressable{StorageAddress: "", Checksum: ""}. Update an image with blank value will be ignored. updateFunctionParam := &asset.UpdateFunctionParam{ Key: "4c67ad88-309a-48b4-8bc4-c2e2c1a87a83", Name: "Updated function name", diff --git a/server/standalone/dbal/function.go b/server/standalone/dbal/function.go index 9b0afb78..d4f8958a 100644 --- a/server/standalone/dbal/function.go +++ b/server/standalone/dbal/function.go @@ -53,7 +53,8 @@ func (d *DBAL) AddFunction(function *asset.Function) error { return err } - // We allow conflict as the default Image with empty string as chesum and address already exists in table. + // We allow conflict as the default Image with empty string as checksum + // and storage_address already exists in table. err = d.addAddressable(function.Image, true) if err != nil { return err