-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AJ-1485: remove compile-time warnings #1254
Conversation
@@ -37,7 +37,7 @@ class RegisterService(val rawlsDao: RawlsDAO, val samDao: SamDAO, val thurloeDao | |||
_ <- thurloeDao.saveKeyValues(registrationResultUserInfo, Map("isRegistrationComplete" -> Profile.currentVersion.toString)) | |||
_ <- if (!registerResult.allowed) { | |||
thurloeDao.saveKeyValues(registrationResultUserInfo, Map("email" -> userInfo.userEmail)) | |||
} else Future.successful() | |||
} else Future.successful(()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the compile warning was:
[warn] /Users/davidan/work/src/firecloud-orchestration/src/main/scala/org/broadinstitute/dsde/firecloud/service/RegisterService.scala:40:31: adaptation of an empty argument list by inserting () is deprecated: this is unlikely to be what you want
[warn] signature: Future.successful[T](result: T): scala.concurrent.Future[T]
[warn] given arguments: <none>
[warn] after adaptation: Future.successful((): Unit)
[warn] } else Future.successful()
[warn] ^
@@ -35,7 +35,7 @@ class HttpGoogleServicesDAOSpec extends AnyFlatSpec with Matchers with PrivateMe | |||
val testProject = "broad-dsde-dev" | |||
val priceListUrl = ConfigFactory.load().getString("googlecloud.priceListUrl") | |||
val defaultPriceList = GooglePriceList(GooglePrices(Map("us" -> BigDecimal(-0.11)), UsTieredPriceItem(Map(1L -> BigDecimal(-0.22)))), "v1", "1") | |||
implicit val system = ActorSystem("HttpGoogleCloudStorageDAOSpec") | |||
implicit val system: ActorSystem = ActorSystem("HttpGoogleCloudStorageDAOSpec") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this - and the remainder of the changes in this PR - had compile warnings of:
Implicit definition should have explicit type
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1254 +/- ##
========================================
Coverage 69.34% 69.34%
========================================
Files 97 97
Lines 3402 3402
Branches 372 372
========================================
Hits 2359 2359
Misses 1043 1043 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
On my laptop, before this PR,
sbt clean test
reported 7 compile warnings. After this PR, it reports 0. This PR should not change any functionality, it just cleans up code.Have you read CONTRIBUTING.md lately? If not, do that first.
I, the developer opening this PR, do solemnly pinky swear that:
In all cases: