Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
srlehn committed Jun 9, 2024
1 parent b6b1d5c commit 080cdaf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions cmd/kooky/kooky.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down
2 changes: 1 addition & 1 deletion filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions internal/utils/open_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
package utils

import (
"fmt"
"os"
"syscall"
"unsafe"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 080cdaf

Please sign in to comment.