Skip to content

Commit 8d10046

Browse files
committed
* cleanup
1 parent 87bb02e commit 8d10046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

txtar/archive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func isMarker(data []byte) (name string, lineSeparator, after []byte) {
147147
// lineSeparator states if \n or \r\n should be appended as a line separator if it is not present.
148148
// Otherwise fixNL returns a new slice consisting of data with a final lineSeparator added.
149149
func fixNL(data , lineSeparator []byte) []byte {
150-
if len(data) == 0 || bytes.HasSuffix(data, crlf) || bytes.HasSuffix(data, lf) {
150+
if len(data) == 0 || bytes.HasSuffix(data, lf) || bytes.HasSuffix(data, crlf) {
151151
return data
152152
}
153153
d := make([]byte, len(data)+len(lineSeparator))

0 commit comments

Comments
 (0)