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

common: introduce RemoveEmptyLines() #3004

Merged
merged 1 commit into from
Aug 1, 2016
Merged

common: introduce RemoveEmptyLines() #3004

merged 1 commit into from
Aug 1, 2016

Conversation

0xAX
Copy link
Contributor

@0xAX 0xAX commented Jul 29, 2016

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
Copy link

ghost commented Jul 29, 2016

Can one of the admins verify this patch?

@lucab
Copy link
Member

lucab commented Jul 31, 2016

ok to test

@@ -824,12 +824,7 @@ type LogsStreamWriter struct {

func (sw LogsStreamWriter) Write(b []byte) (int, error) {
// Remove empty lines
Copy link
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
Copy link
Contributor Author

0xAX commented Aug 1, 2016

force pushed

@iaguis
Copy link
Member

iaguis commented Aug 1, 2016

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