Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Trim whitespace from pidfile content (#84)
<!-- PR title should start with '[fix]', '[improvement]' or '[break]' if this PR would cause a patch, minor or major SemVer bump. Omit the prefix if this PR doesn't warrant a standalone release. --> ## Before this PR We saw the below error in production: ``` failed to determine service status: failed to determine running processes: pid file did not contain an integer: strconv.Atoi: parsing "12773\n": invalid syntax ``` From reading the `Start` code I'm not sure how the newline got in there, but this should protect us from it in the future. ## After this PR We will ignore spurious whitespace in the pidfile <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/palantir/go-java-launcher/84) <!-- Reviewable:end -->
- Loading branch information