dmigwi / sample

0 stars 0 forks source link

[Cryptomaterial]: Ineffective assignment to field IconButton.colorStyle lint error - TODO statement #535

Open dmigwi opened 1 year ago

dmigwi commented 1 year ago

Context to consider:

// TODO: Test to ensure this works!
// TODO: Doesn't work, if ib.colorStyle was nil before this method is called,
// it is temporarily changed but when ib.Layout is called, it returns to nil.
func (ib IconButton) ChangeColorStyle(colorStyle *values.ColorStyle) {
    // ib.colorStyle = colorStyle ? TODO SA4005: ineffective assignment to field IconButton.colorStyle lint error
}

(Issue originally authored by: @Kennedy Izuegbu in gitlab.com)