Skip to content

Commit

Permalink
remove repeating code
Browse files Browse the repository at this point in the history
  • Loading branch information
76creates authored and meowgorithm committed Feb 25, 2022
1 parent 75c95df commit 74e01f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions example/vet/main.go
@@ -0,0 +1 @@
package vet
5 changes: 0 additions & 5 deletions style.go
Expand Up @@ -137,11 +137,6 @@ func (s Style) Inherit(i Style) Style {
// Padding is not inherited
continue
case backgroundKey:
if _, exists := s.rules[k]; exists {
continue
}
s.rules[k] = v

// The margins also inherit the background color
if !s.isSet(marginBackgroundKey) && !i.isSet(marginBackgroundKey) {
s.rules[marginBackgroundKey] = v
Expand Down

0 comments on commit 74e01f6

Please sign in to comment.