Skip to content

Commit

Permalink
revert: remove conditionallog
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabaie committed Jan 23, 2025
1 parent 27a82d5 commit 75993d6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions internal/utils/test_utils/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,9 @@ import (
"bytes"
"github.com/stretchr/testify/require"
"io"
"log"
"testing"
)

var ConditionalLoggerEnabled bool

func ConditionalLog(v ...any) {
if ConditionalLoggerEnabled {
log.Println(v...)
}
}

func ConditionalLogf(format string, v ...any) {
if ConditionalLoggerEnabled {
log.Printf(format, v...)
}
}

// Range (n, startingPoints...) = [startingPoints[0], startingPoints[0]+1, ..., startingPoints[0]+n-1, startingPoints[1], startingPoints[1]+1, ...,]
// or [0, 1, ..., n-1] if startingPoints is empty
func Range(n int, startingPoints ...int) []int {
Expand Down

0 comments on commit 75993d6

Please sign in to comment.