Skip to content

Commit

Permalink
(feat): Remove redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lasith-kg committed Nov 26, 2023
1 parent e757000 commit 8a860b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/layer/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (fdl *ResizeDeviceLayer) From(c *config.Config) error {

func (fdl *ResizeDeviceLayer) Modify(c *config.Config) ([]action.Action, error) {
actions := make([]action.Action, 0)
for name, _ := range c.Devices {
for name := range c.Devices {
if !c.GetResizeFs(name) {
continue
}
Expand All @@ -49,7 +49,7 @@ func (fdl *ResizeDeviceLayer) Modify(c *config.Config) ([]action.Action, error)
}

func (fdl *ResizeDeviceLayer) Validate(c *config.Config) error {
for name, _ := range c.Devices {
for name := range c.Devices {
if !c.GetResizeFs(name) {
continue
}
Expand Down

0 comments on commit 8a860b1

Please sign in to comment.