summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-30 20:03:08 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commit0a8cff6ab68dc92b98136c4ebe5c6bc7f8f1b3c7 (patch)
treea68b6ffa7a886d73346f6305c76db0ffe54cbe7b /pkg/gui/context.go
parente2f5fe101621c0162791d6ea312ef8093616f59c (diff)
some more refactoring
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r--pkg/gui/context.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go
index 1c115c04b..09b669b04 100644
--- a/pkg/gui/context.go
+++ b/pkg/gui/context.go
@@ -464,13 +464,7 @@ func (gui *Gui) getSideContextSelectedItemId() string {
return ""
}
- item, ok := currentSideContext.GetSelectedItem()
-
- if ok {
- return item.ID()
- }
-
- return ""
+ return currentSideContext.GetSelectedItemId()
}
// currently unused