Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Dec 18, 2017
1 parent f680394 commit 27d928e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uu.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Decode(data []byte) (*Decoded, error) {
if rows[len(rows)-2] != "end" {
return dec, errors.New("invalid format: no 'end' marker found")
}
if !(rows[len(rows)-3] == "`" || rows[len(rows)-3] == " ") {
if rows[len(rows)-3] != "`" && rows[len(rows)-3] != " " {
return dec, errors.New("invalid ending format")
}

Expand Down

0 comments on commit 27d928e

Please sign in to comment.