From 080cdafa7062469a1ffdc98cc566765e96e85e8e Mon Sep 17 00:00:00 2001 From: Simon Lehn <48837958+srlehn@users.noreply.github.com> Date: Sun, 9 Jun 2024 21:13:08 +0200 Subject: [PATCH] clean up --- cmd/kooky/kooky.go | 6 ------ filter.go | 2 +- internal/utils/open_windows.go | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/cmd/kooky/kooky.go b/cmd/kooky/kooky.go index 17626c7..b2af3cf 100644 --- a/cmd/kooky/kooky.go +++ b/cmd/kooky/kooky.go @@ -72,12 +72,6 @@ func main() { } cookies, _ := store.ReadCookies(filters...) - /*fmt.Println(store.FilePath()) // TODO rm - cookies, err := store.ReadCookies(filters...) - if err != nil { - fmt.Println(err) - }*/ - // continue // TODO rm if export != nil && len(*export) > 0 { cookiesExport = append(cookiesExport, cookies...) diff --git a/filter.go b/filter.go index 60f05f4..415e0b9 100644 --- a/filter.go +++ b/filter.go @@ -8,7 +8,7 @@ import ( ) // Filter is used for filtering cookies in ReadCookies() functions. -// Filter order might be changed for peformance reasons +// Filter order might be changed for performance reasons // (omission of value decryption of filtered out cookies, etc). // // A cookie passes the Filter if Filter.Filter returns true. diff --git a/internal/utils/open_windows.go b/internal/utils/open_windows.go index e0cacfc..e50ac22 100644 --- a/internal/utils/open_windows.go +++ b/internal/utils/open_windows.go @@ -3,7 +3,6 @@ package utils import ( - "fmt" "os" "syscall" "unsafe" @@ -104,10 +103,8 @@ func sysOpen(path string, mode int, perm uint32) (fd syscall.Handle, err error) } func openFile(name string) (*os.File, error) { - fmt.Println("open locked file", name) fd, err := sysOpen(name, os.O_RDONLY, 0) if err != nil { - fmt.Println("open locked file error:", err) return nil, err } f := os.NewFile(uintptr(fd), name)