commit e38ad9499b99a03affe1dba77f911e84d8d0a7ca
parent b0e5a905b93bfb7ae3a986ae65749b6d17cfaa4f
Author: Sean Enck <sean@ttypty.com>
Date: Sat, 16 Jul 2022 09:35:16 -0400
store is unused
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/lb/main.go b/cmd/lb/main.go
@@ -134,7 +134,7 @@ func main() {
internal.Die("failed to save password", err)
}
fmt.Println("")
- internal.Hooks(store, internal.InsertHook, internal.PostHookStep)
+ internal.Hooks(internal.InsertHook, internal.PostHookStep)
case "rm":
entry := getEntry(store, args, 2)
if !internal.PathExists(entry) {
@@ -142,7 +142,7 @@ func main() {
}
if confirm("remove entry") {
os.Remove(entry)
- internal.Hooks(store, internal.RemoveHook, internal.PostHookStep)
+ internal.Hooks(internal.RemoveHook, internal.PostHookStep)
}
case "show", "-c", "clip", "dump":
isDump := command == "dump"
diff --git a/internal/hooks.go b/internal/hooks.go
@@ -24,7 +24,7 @@ const (
)
// Hooks executes any configured hooks.
-func Hooks(store string, action HookAction, step HookStep) error {
+func Hooks(action HookAction, step HookStep) error {
hookDir := os.Getenv("LOCKBOX_HOOKDIR")
if !PathExists(hookDir) {
return nil