Skip to content

Commit

Permalink
(feat): Warning Disabled Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
lasith-kg committed Dec 26, 2023
1 parent 76ed45e commit feed293
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/layer/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ func (fdl *CreateDirectoryLayer) Validate(c *config.Config) error {
}

func (fdl *CreateDirectoryLayer) Warning() string {
return DisableWarning
return DisabledWarning
}
4 changes: 2 additions & 2 deletions internal/layer/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
)

const (
DisableWarning = ""
DisabledWarning = ""
)

type Layer interface {
Expand Down Expand Up @@ -67,7 +67,7 @@ func (le *ExponentialBackoffLayerExecutor) Execute(layers []Layer) error {
}
// Only print warning if actions are detected and a valid warning
// message is provided
if warning := layer.Warning(); len(actions) > 0 && warning != DisableWarning {
if warning := layer.Warning(); len(actions) > 0 && warning != DisabledWarning {
log.Printf("🟠 %s", warning)
}
err = le.actionExecutor.Execute(actions)
Expand Down
2 changes: 1 addition & 1 deletion internal/layer/owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ func (fdl *ChangeOwnerLayer) Validate(c *config.Config) error {
}

func (fdl *ChangeOwnerLayer) Warning() string {
return DisableWarning
return DisabledWarning
}
2 changes: 1 addition & 1 deletion internal/layer/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ func (fdl *ChangePermissionsLayer) Validate(c *config.Config) error {
}

func (fdl *ChangePermissionsLayer) Warning() string {
return DisableWarning
return DisabledWarning
}
2 changes: 1 addition & 1 deletion internal/layer/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ func (fdl *ResizeDeviceLayer) Validate(c *config.Config) error {
}

func (fdl *ResizeDeviceLayer) Warning() string {
return DisableWarning
return DisabledWarning
}

0 comments on commit feed293

Please sign in to comment.