From 8a860b12bb796060444ce4dafeb0cdb760a2ab86 Mon Sep 17 00:00:00 2001 From: Lasith Koswatta Gamage Date: Sun, 26 Nov 2023 07:54:36 +0000 Subject: [PATCH] (feat): Remove redundant variable --- internal/layer/resize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/layer/resize.go b/internal/layer/resize.go index 069bfed..42a485c 100644 --- a/internal/layer/resize.go +++ b/internal/layer/resize.go @@ -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 } @@ -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 }