Skip to content

Commit f80d33f

Browse files
committed
Remove erroneous logging
1 parent 23587d3 commit f80d33f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/*
2+
output/*
3+
payload/*

pkg/launchservices/handlers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ func (p *Plist) CleanHandlers() {
1717
handler.LSHandlerContentType != "public.xhtml" &&
1818
handler.LSHandlerURLScheme != "https" &&
1919
handler.LSHandlerURLScheme != "http" {
20-
fmt.Printf("Removing handler: %v\n", handler)
2120
newLSHandlers = append(newLSHandlers, handler)
2221
}
2322
}

pkg/launchservices/plist.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func GetPlist(path string) (Plist, error) {
4141

4242
func plistExists(path string) (bool, error) {
4343
_, err := os.Stat(path)
44-
if os.IsNotExist(err) {
44+
if os.IsNotExist(err) {
4545
return false, nil
4646
}
4747
if err != nil {
@@ -62,7 +62,7 @@ func ReadPlist(path string) (Plist, error) {
6262
}
6363
defer plistFile.Close()
6464

65-
err = plist.NewDecoder(plistFile).Decode(&p)
65+
err = plist.NewBinaryDecoder(plistFile).Decode(&p)
6666
if err != nil {
6767
return p, err
6868
}

0 commit comments

Comments
 (0)