From d78d694959f82c611d63317248202f39351d5910 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Tue, 30 Aug 2022 13:23:37 +0800 Subject: [PATCH] chore: remove duplicate word in comments Signed-off-by: Abirdcfly --- pkg/commands/models/file.go | 2 +- pkg/commands/oscommands/cmd_obj_runner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/models/file.go b/pkg/commands/models/file.go index 4589f91fa..eeb540def 100644 --- a/pkg/commands/models/file.go +++ b/pkg/commands/models/file.go @@ -44,7 +44,7 @@ func (f *File) Names() []string { return result } -// returns true if the file names are the same or if a a file rename includes the filename of the other +// returns true if the file names are the same or if a file rename includes the filename of the other func (f *File) Matches(f2 *File) bool { return utils.StringArraysOverlap(f.Names(), f2.Names()) } diff --git a/pkg/commands/oscommands/cmd_obj_runner.go b/pkg/commands/oscommands/cmd_obj_runner.go index 8311f9eb7..ba1489fe6 100644 --- a/pkg/commands/oscommands/cmd_obj_runner.go +++ b/pkg/commands/oscommands/cmd_obj_runner.go @@ -147,7 +147,7 @@ func (self *cmdObjRunner) runWithCredentialHandling(cmdObj ICmdObj) error { promptFn = failPromptFn case NONE: // we should never land here - return errors.New("runWithCredentialHandling called but cmdObj does not have a a credential strategy") + return errors.New("runWithCredentialHandling called but cmdObj does not have a credential strategy") } return self.runAndDetectCredentialRequest(cmdObj, promptFn)