Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dylant-da committed Sep 25, 2024
1 parent f034564 commit 2a5bd35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sdk/compiler/damlc/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,11 @@ da_haskell_test(
"//test-common:upgrades-FailsWhenATopLevelVariantAddsAFieldToAVariantsType-files",
"//test-common:upgrades-FailsWhenATopLevelVariantAddsAVariant-files",
"//test-common:upgrades-FailsWhenATopLevelVariantRemovesAVariant-files",
"//test-common:upgrades-FailsWhenAnExceptionIsDefinedInAnUpgradingPackageWhenItWasAlreadyInThePriorPackage-files",
"//test-common:upgrades-FailsWhenAnInstanceIsAddedSeparateDep-files",
"//test-common:upgrades-FailsWhenAnInstanceIsAddedUpgradedPackage-files",
"//test-common:upgrades-FailsWhenAnInstanceIsDropped-files",
"//test-common:upgrades-FailsWhenAnInterfaceIsDefinedInAnUpgradingPackageWhenItWasAlreadyInThePriorPackage-files",
"//test-common:upgrades-FailsWhenAnExceptionIsDefinedInAnUpgradingPackageWhenItWasAlreadyInThePriorPackage-files",
"//test-common:upgrades-FailsWhenDatatypeChangesVariety-files",
"//test-common:upgrades-FailsWhenDependencyIsNotAValidUpgrade-files",
"//test-common:upgrades-FailsWhenDepsDowngradeVersionsWhileUsingDatatypes-files",
Expand Down Expand Up @@ -497,10 +497,10 @@ da_haskell_test(
"//test-common:upgrades-SucceedsWhenATopLevelTypeSynonymChanges-files",
"//test-common:upgrades-SucceedsWhenATopLevelVariantAddsAVariant-files",
"//test-common:upgrades-SucceedsWhenATopLevelVariantAddsAnOptionalFieldToAVariantsType-files",
"//test-common:upgrades-SucceedsWhenAnExceptionIsOnlyDefinedInTheInitialPackage-files",
"//test-common:upgrades-SucceedsWhenAnInstanceIsAddedToNewTemplateSeparateDep-files",
"//test-common:upgrades-SucceedsWhenAnInstanceIsAddedToNewTemplateUpgradedPackage-files",
"//test-common:upgrades-SucceedsWhenAnInterfaceIsOnlyDefinedInTheInitialPackage-files",
"//test-common:upgrades-SucceedsWhenAnExceptionIsOnlyDefinedInTheInitialPackage-files",
"//test-common:upgrades-SucceedsWhenDepsDowngradeVersionsWithoutUsingDatatypes-files",
"//test-common:upgrades-SucceedsWhenNewFieldWithOptionalTypeIsAddedToTemplate-files",
"//test-common:upgrades-SucceedsWhenNewFieldWithOptionalTypeIsAddedToTemplateChoice-files",
Expand Down
1 change: 0 additions & 1 deletion sdk/daml-lf/validation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ da_scala_test_suite(
"//test-common:upgrades-SucceedsWhenDepsDowngradeVersionsWithoutUsingDatatypes-dep-v2.dar",
"//test-common:upgrades-SucceedsWhenDepsDowngradeVersionsWithoutUsingDatatypes-v1.dar",
"//test-common:upgrades-SucceedsWhenDepsDowngradeVersionsWithoutUsingDatatypes-v2.dar",

"//test-common:upgrades-SucceedsWhenAnExceptionIsOnlyDefinedInTheInitialPackage-v1.dar",
"//test-common:upgrades-SucceedsWhenAnExceptionIsOnlyDefinedInTheInitialPackage-v2.dar",
"//test-common:upgrades-FailsWhenAnExceptionIsDefinedInAnUpgradingPackageWhenItWasAlreadyInThePriorPackage-v1.dar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,13 +594,14 @@ case class TypecheckUpgrades(
Either[
(Ref.DottedName, (Ast.DDataType, Ast.DefException)),
(Ref.DottedName, Ast.DDataType),
]
],
] = {
module.interfaces.get(tcon) match {
case None => Right(module.exceptions.get(tcon) match {
case None => Right((tcon, dt))
case Some(exception) => Left((tcon, (dt, exception)))
})
case None =>
Right(module.exceptions.get(tcon) match {
case None => Right((tcon, dt))
case Some(exception) => Left((tcon, (dt, exception)))
})
case Some(iface) => Left((tcon, (dt, iface)))
}
}
Expand Down

0 comments on commit 2a5bd35

Please sign in to comment.