Skip to content

Commit

Permalink
Fix ci-lint error: appendAssign
Browse files Browse the repository at this point in the history
---
main.go:132:14: appendAssign: append result not assigned to the same slice (gocritic)
	RDSInfos := append(ClusterInfos, InstanceInfos...)
	            ^
  • Loading branch information
chaspy committed May 2, 2022
1 parent af986f9 commit 3c7b525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func snapshot(minimumSupportedInfo []MinimumSupportedInfo) error {
return fmt.Errorf("failed to read RDS Instance infos: %w", err)
}

RDSInfos := append(ClusterInfos, InstanceInfos...)
RDSInfos := ClusterInfos
RDSInfos = append(RDSInfos, InstanceInfos...)

for _, RDSInfo := range RDSInfos {
err := export(RDSInfo, minimumSupportedInfo)
Expand Down

0 comments on commit 3c7b525

Please sign in to comment.