Skip to content

Commit

Permalink
Fix NPE panic (#1313)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Sep 30, 2024
1 parent f7d0e37 commit c38f3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/archiver/archiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func GetSameProjectNamespaces(kbClient client.Client, dbNs string) ([]string, er
if err != nil {
return nil, err
}
ret := make([]string, 0, len(namespaces))
ret := make([]string, len(namespaces))
for i, namespace := range namespaces {
ret[i] = namespace.Name
}
Expand Down

0 comments on commit c38f3bd

Please sign in to comment.