diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-06-07 14:48:47 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-23 11:43:12 +0200 |
commit | 44ad36bb393585235042493f75b6c68d7d51732f (patch) | |
tree | cca212fe1862493e854ac854a4a9e77e61866224 /pkg/gui/context/commit_files_context.go | |
parent | 08a8b067a5f1470d0b304d5a5884c47c76dbe8ed (diff) |
Add type assertions for all searchable contexts
We want to add an additional method to ISearchableContext later in this branch,
and this will make sure that we don't forget to implement it in any concrete
context.
Diffstat (limited to 'pkg/gui/context/commit_files_context.go')
-rw-r--r-- | pkg/gui/context/commit_files_context.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/gui/context/commit_files_context.go b/pkg/gui/context/commit_files_context.go index 88dac8b45..d6df67a10 100644 --- a/pkg/gui/context/commit_files_context.go +++ b/pkg/gui/context/commit_files_context.go @@ -18,8 +18,9 @@ type CommitFilesContext struct { } var ( - _ types.IListContext = (*CommitFilesContext)(nil) - _ types.DiffableContext = (*CommitFilesContext)(nil) + _ types.IListContext = (*CommitFilesContext)(nil) + _ types.DiffableContext = (*CommitFilesContext)(nil) + _ types.ISearchableContext = (*CommitFilesContext)(nil) ) func NewCommitFilesContext(c *ContextCommon) *CommitFilesContext { |