Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

common: introduce RemoveEmptyLines() - #3004

Merged
iaguis merged 1 commit into
rkt:masterfrom
0xAX:introduce-remove-empty-lines
Aug 1, 2016
Merged

iaguis merged 1 commit into
rkt:masterfrom
0xAX:introduce-remove-empty-lines

Conversation

@0xAX

@0xAX 0xAX commented Jul 29, 2016 •

Copy link
Copy Markdown
Contributor

Couple of places uses the same functionality which removes empty lines from
a multiline string. This patch introduces RemoveEmptyLines() function to
achive this functionality in one place and get rid from code duplication.

Not sure that common/common.go is the best place for this although.

@ghost

ghost commented Jul 29, 2016

Copy link
Copy Markdown

Can one of the admins verify this patch?

@lucab

lucab commented Jul 31, 2016

Copy link
Copy Markdown
Member

ok to test

Comment thread rkt/api_service.go Outdated
@@ -824,12 +824,7 @@ type LogsStreamWriter struct {

func (sw LogsStreamWriter) Write(b []byte) (int, error) {
// Remove empty lines

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove the comment now

Couple of places uses the same functionality which removes empty lines from
a multiline string. This patch introduces RemoveEmptyLines() function to
achive this functionality in one place and get rid from code duplication.
@0xAX

0xAX commented Aug 1, 2016

Copy link
Copy Markdown
Contributor Author

force pushed

@iaguis

iaguis commented Aug 1, 2016

Copy link
Copy Markdown
Member

Thanks, LGTM

@iaguis
iaguis merged commit 3167457 into rkt:master Aug 1, 2016
@0xAX
0xAX deleted the introduce-remove-empty-lines branch August 2, 2016 09:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants