Skip to content
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

Change autoImport def's to val's #69

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

mdedetrich
Copy link
Contributor

Unless I am missing something I am pretty sure these can be val instead of def defijitions

@@ -12,18 +12,18 @@ object SbtLicenseReport extends AutoPlugin {
object autoImportImpl {
// Types and objects to auto-expose
type LicenseCategory = sbtlicensereport.license.LicenseCategory
def LicenseCategory = sbtlicensereport.license.LicenseCategory
val LicenseCategory = sbtlicensereport.license.LicenseCategory
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess in theory def could potentially prevent eager evaluation and memory leaks, but likely a moot here since most of these are used in the setting code below?

Copy link
Contributor Author

@mdedetrich mdedetrich May 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes correct, its being immediately used

@eed3si9n eed3si9n merged commit 9ca61b6 into sbt:main May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants