From efe7c35dcfb3ad85681ac6815b4473db4d86b34b Mon Sep 17 00:00:00 2001 From: "t.kusumoto" Date: Sun, 19 Aug 2018 10:26:04 +0900 Subject: Replace '== Some(x)' with contains(x) Simplifying equality of the instance of Option and Some(x). Before: option == Some(x) Some(x) != option After: option.contains(x) !option.contains(x) --- ci/version.sc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ci') diff --git a/ci/version.sc b/ci/version.sc index 4e73530..02c5b67 100644 --- a/ci/version.sc +++ b/ci/version.sc @@ -1,8 +1,8 @@ import ammonite.ops.{%%, pwd} val isMasterCommit = { - sys.env.get("TRAVIS_PULL_REQUEST") == Some("false") && - (sys.env.get("TRAVIS_BRANCH") == Some("master") || sys.env("TRAVIS_TAG") != "") + sys.env.get("TRAVIS_PULL_REQUEST").contains("false") && + (sys.env.get("TRAVIS_BRANCH").contains("master") || sys.env("TRAVIS_TAG") != "") } def gitHead = -- cgit v1.2.3