Skip to content

Commit

Permalink
ignore open file error
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Apr 3, 2016
1 parent 3a68d99 commit c644ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func main() {
func() {
fp, err := os.Open(file)
if err != nil {
panic(err)
return // ignore error
}
defer fp.Close()

Expand Down

0 comments on commit c644ff5

Please sign in to comment.