Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
Signed-off-by: ThibaultFy <[email protected]>
  • Loading branch information
ThibaultFy committed Feb 7, 2024
1 parent e6372a2 commit 46b0238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/service/function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion server/standalone/dbal/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46b0238

Please sign in to comment.