Commit b950458
committed
fix(widgets): drop redundant self.* assignments (CodeQL overwritten-inherited-attribute)
FormatCustomText.__init__ and JobStatusBar.__init__ set instance
attributes (format; name/left/right/fill) that their super().__init__
immediately re-sets from the same values, which CodeQL flags as
overwriting the inherited attribute. Remove the duplicates; the base
initializers (FormatWidgetMixin, Bar, VariableMixin) set them. Verified
attrs identical after construction; no behavior change.1 parent 151e151 commit b950458
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
1252 | | - | |
| 1252 | + | |
| 1253 | + | |
1253 | 1254 | | |
1254 | 1255 | | |
1255 | 1256 | | |
| |||
1672 | 1673 | | |
1673 | 1674 | | |
1674 | 1675 | | |
1675 | | - | |
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | 1683 | | |
1687 | 1684 | | |
1688 | 1685 | | |
| |||
0 commit comments