Skip to content

Commit

Permalink
small stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed May 5, 2014
1 parent ea3ea5a commit b380ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func iso88591ToUTF8(input []byte) []byte {
for _, b := range input {
if b <= 128 {
res[j] = b
j += 1
j++
} else {
if b >= 192 {
res[j] = 195
Expand Down
9 changes: 4 additions & 5 deletions id3.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (t *Tag) upgrade() {
}
}

for name, _ := range t.Frames {
for name := range t.Frames {
switch name {
case "TLAN", "TCON", "TPE1", "TOPE", "TCOM", "TEXT", "TOLY":
Logging.Println("Replacing / with x00 for", name)
Expand Down Expand Up @@ -1063,11 +1063,10 @@ func (f *File) Save() error {
// ours.
Logging.Println("Writing in-place")
return f.saveInplace(framesSize)
} else {
// We have to create a new file
Logging.Println("Writing new file")
return f.saveNew(framesSize)
}
// We have to create a new file
Logging.Println("Writing new file")
return f.saveNew(framesSize)
}

func (fm FramesMap) size() int {
Expand Down

0 comments on commit b380ae7

Please sign in to comment.