Commit e67bfb8
committed
check: Fix error condition in parsing Flutter version from pubspec
This is intended to check if the pattern failed to match, by
checking whether the array `parsed` has zero elements. To do this,
it looks at the length of the array... but then it was checking if
that length, as a string, is empty. Oops. Instead, check if the
length, as a number, is zero.1 parent c3c9c6b commit e67bfb8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
0 commit comments