Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
Signed-off-by: chandankumar4 <[email protected]>
  • Loading branch information
chandankumar4 committed Dec 13, 2023
1 parent 6eaa6c7 commit 7047914
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e-api/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func init() {

func getKafkaPartitionAndReplicas(p, r string) (partition int, replicas int, err error) {
if p == "" {
// if partition is not specified, default to 1
partition = 1
} else {
partition, err = strconv.Atoi(p)
Expand All @@ -221,6 +222,7 @@ func getKafkaPartitionAndReplicas(p, r string) (partition int, replicas int, err
}

if r == "" {
// if replicas is not specified, default to 1
replicas = 1
} else {
replicas, err = strconv.Atoi(r)
Expand Down

0 comments on commit 7047914

Please sign in to comment.