Skip to content

Commit

Permalink
fix failing on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
piranha committed Jun 17, 2013
1 parent 8f87061 commit ea5b238
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ supported as replacement, no regexp submatch support yet (planned, though).

## Changelog

- 1.3
- Fix stack trace dump on Linux when file is not readable
- 1.2
- `.gitignore` fixes will never end it seems, another one
- 1.1
Expand Down
5 changes: 4 additions & 1 deletion goreplace.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

var (
Author = "Alexander Solovyov"
Version = "1.2"
Version = "1.3"

byteNewLine = []byte("\n")
)
Expand Down Expand Up @@ -185,6 +185,9 @@ func (v *GRVisitor) VisitFile(fn string, fi os.FileInfo) {
}

f, content := v.GetFileAndContent(fn, fi)
if f == nil {
return
}
defer f.Close()

if opts.Replace == nil {
Expand Down

0 comments on commit ea5b238

Please sign in to comment.