Skip to content

Commit e4b840e

Browse files
ndmitchellfacebook-github-bot
authored andcommitted
Promote maybe undefined into a warning
Summary: Seems that people do care and want this to show up. Reviewed By: themarwhal Differential Revision: D47150378 fbshipit-source-id: af95bdcf389998d0a92bf05e8ea979491ee841e3
1 parent d625dfd commit e4b840e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starlark/src/analysis/names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub(crate) enum NameWarning {
6969
impl LintWarning for NameWarning {
7070
fn severity(&self) -> EvalSeverity {
7171
match self {
72-
Self::UsingUnassigned(..) => EvalSeverity::Warning,
72+
Self::UsingUnassigned(..) | Self::UsingMaybeUndefined(..) => EvalSeverity::Warning,
7373
_ => EvalSeverity::Disabled,
7474
}
7575
}

0 commit comments

Comments
 (0)