Skip to content

Commit b93a625

Browse files
committed
remove redundant int-cast
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com>
1 parent e9d56e1 commit b93a625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (r *IpfsReconciler) secretConfig(
6666
if numIdentities != m.Spec.Replicas {
6767
// create more identities if needed, otherwise they will be reused
6868
// when scaling down and then up again
69-
if int(numIdentities) < int(m.Spec.Replicas) {
69+
if numIdentities < m.Spec.Replicas {
7070
// create more
7171
err = generateNewIdentities(expectedSecret, numIdentities, m.Spec.Replicas)
7272
if err != nil {

0 commit comments

Comments
 (0)