From 0c543fcce0a768ab89b8d10be9c3a6d393473a39 Mon Sep 17 00:00:00 2001 From: laurentsimon <64505099+laurentsimon@users.noreply.github.com> Date: Wed, 31 Aug 2022 18:00:56 -0700 Subject: [PATCH] update (#244) --- verifiers/internal/gcb/provenance.go | 4 ++-- verifiers/internal/gcb/provenance_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/verifiers/internal/gcb/provenance.go b/verifiers/internal/gcb/provenance.go index d49fd26..d1506f2 100644 --- a/verifiers/internal/gcb/provenance.go +++ b/verifiers/internal/gcb/provenance.go @@ -175,8 +175,8 @@ func (self *Provenance) VerifyTextProvenance() error { } // Note: DeepEqual() has problem with time comparisons: https://github.com/onsi/gomega/issues/264 - // but this should not affect us since both times are supposed to have the the same string and - // they are both taken from a strng representation. + // but this should not affect us since both times are supposed to have the same string and + // they are both taken from a string representation. // We do not use cmp.Equal() because it *can* panic and is intended for unit tests only. if !reflect.DeepEqual(unverifiedTextIntotoStatement, *self.verifiedIntotoStatement) { return fmt.Errorf("%w: diff '%s'", serrors.ErrorMismatchIntoto, diff --git a/verifiers/internal/gcb/provenance_test.go b/verifiers/internal/gcb/provenance_test.go index 3056b8a..c12e5f7 100644 --- a/verifiers/internal/gcb/provenance_test.go +++ b/verifiers/internal/gcb/provenance_test.go @@ -521,8 +521,8 @@ func Test_VerifyTextProvenance(t *testing.T) { } if err = json.Unmarshal(patch, &prov.verifiedProvenance.Build.UnverifiedTextIntotoStatement); err != nil { - // If we updated a characters that make a non-string fiel invalid, like Time, unmarshalin will fail, - // and we ignore the error. + // If we updated a character that makes a non-string field invalid, like Time, unmarshaling will fail, + // so we ignore the error. i += 1 patch = []byte(strings.Clone(string(cpy))) continue