Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Avoid "".lines ambiguity #59

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Conversation

som-snytt
Copy link
Contributor

Currently, "normalizing" the log file and "filtering" the check
file rely on "".lines.isEmpty to represent an absent or empty
file. This commit avoids extracting lines from an empty string.

Currently, "normalizing" the log file and "filtering" the check
file rely on `"".lines.isEmpty` to represent an absent or empty
file. This commit avoids extracting lines from an empty string.
@som-snytt
Copy link
Contributor Author

Not urgent since the other PR is closed. But maybe the call sites look cleaner.

Certainly the empty string handling was confusing, given partest's too-many moving parts. fileContents could be Option[String], etc.

@lrytz
Copy link
Member

lrytz commented Jun 8, 2016

LGTM

@lrytz lrytz merged commit a70e9fd into scala:master Jun 8, 2016
@som-snytt som-snytt deleted the issue/file-contents branch April 6, 2017 23:54
lrytz added a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
lrytz added a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants