From 4f7eaaa1264543da7c5790d2001bdb03f3547b22 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Wed, 6 Nov 2024 15:27:13 +0100 Subject: [PATCH] chore: remove repetitive words (wagoodman/dive#515) Co-authored-by: thirdkeyword Signed-off-by: thirdkeyword --- runtime/ui/view/debug.go | 2 +- runtime/ui/view/filetree.go | 2 +- runtime/ui/view/filter.go | 2 +- runtime/ui/view/layer.go | 2 +- runtime/ui/view/status.go | 2 +- runtime/ui/viewmodel/filetree.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/ui/view/debug.go b/runtime/ui/view/debug.go index e4cc8aa0..34786311 100644 --- a/runtime/ui/view/debug.go +++ b/runtime/ui/view/debug.go @@ -20,7 +20,7 @@ type Debug struct { selectedView Helper } -// newDebugView creates a new view object attached the the global [gocui] screen object. +// newDebugView creates a new view object attached the global [gocui] screen object. func newDebugView(gui *gocui.Gui) (controller *Debug) { controller = new(Debug) diff --git a/runtime/ui/view/filetree.go b/runtime/ui/view/filetree.go index 0aaeb178..7fdb7a97 100644 --- a/runtime/ui/view/filetree.go +++ b/runtime/ui/view/filetree.go @@ -33,7 +33,7 @@ type FileTree struct { requestedWidthRatio float64 } -// newFileTreeView creates a new view object attached the the global [gocui] screen object. +// newFileTreeView creates a new view object attached the global [gocui] screen object. func newFileTreeView(gui *gocui.Gui, tree *filetree.FileTree, refTrees []*filetree.FileTree, cache filetree.Comparer) (controller *FileTree, err error) { controller = new(FileTree) controller.listeners = make([]ViewOptionChangeListener, 0) diff --git a/runtime/ui/view/filter.go b/runtime/ui/view/filter.go index a9617c74..ccbff27b 100644 --- a/runtime/ui/view/filter.go +++ b/runtime/ui/view/filter.go @@ -27,7 +27,7 @@ type Filter struct { filterEditListeners []FilterEditListener } -// newFilterView creates a new view object attached the the global [gocui] screen object. +// newFilterView creates a new view object attached the global [gocui] screen object. func newFilterView(gui *gocui.Gui) (controller *Filter) { controller = new(Filter) diff --git a/runtime/ui/view/layer.go b/runtime/ui/view/layer.go index ce6954a0..63af8958 100644 --- a/runtime/ui/view/layer.go +++ b/runtime/ui/view/layer.go @@ -28,7 +28,7 @@ type Layer struct { helpKeys []*key.Binding } -// newLayerView creates a new view object attached the the global [gocui] screen object. +// newLayerView creates a new view object attached the global [gocui] screen object. func newLayerView(gui *gocui.Gui, layers []*image.Layer) (controller *Layer, err error) { controller = new(Layer) diff --git a/runtime/ui/view/status.go b/runtime/ui/view/status.go index f7b130f7..648ce2c2 100644 --- a/runtime/ui/view/status.go +++ b/runtime/ui/view/status.go @@ -25,7 +25,7 @@ type Status struct { helpKeys []*key.Binding } -// newStatusView creates a new view object attached the the global [gocui] screen object. +// newStatusView creates a new view object attached the global [gocui] screen object. func newStatusView(gui *gocui.Gui) (controller *Status) { controller = new(Status) diff --git a/runtime/ui/viewmodel/filetree.go b/runtime/ui/viewmodel/filetree.go index 8734eaf8..afb01732 100644 --- a/runtime/ui/viewmodel/filetree.go +++ b/runtime/ui/viewmodel/filetree.go @@ -38,7 +38,7 @@ type FileTreeViewModel struct { Buffer bytes.Buffer } -// NewFileTreeViewModel creates a new view object attached the the global [gocui] screen object. +// NewFileTreeViewModel creates a new view object attached the global [gocui] screen object. func NewFileTreeViewModel(tree *filetree.FileTree, refTrees []*filetree.FileTree, cache filetree.Comparer) (treeViewModel *FileTreeViewModel, err error) { treeViewModel = new(FileTreeViewModel)