Skip to content

Commit 60cb474

Browse files
Nero5023facebook-github-bot
authored andcommitted
Use isinstance to replace == "artifact"
Summary: Use isinstance to replace == "artifact". These are left by the codemod, because codemod cannot update for this case Reviewed By: JakobDegen Differential Revision: D74287813 fbshipit-source-id: 678b5b0077cc5f3b6e7b9e50fc43becc80f503bf
1 parent 1f0c5b1 commit 60cb474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prelude/java/utils/java_utils.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def derive_javac(javac_attribute: [str, Dependency, Artifact]) -> [str, RunInfo,
3030
expect(len(outputs) == 1, "Expect one default output from build dep of attr javac!")
3131
return outputs[0]
3232

33-
if javac_attr_type == "artifact":
33+
if isinstance(javac_attribute, Artifact):
3434
return javac_attribute
3535

3636
if javac_attr_type == type(""):

0 commit comments

Comments
 (0)