Skip to content

Commit

Permalink
Refactoring based on review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
absurdfarce committed Sep 6, 2024
1 parent 088db7f commit 338c8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ package gocql
import "runtime/debug"

const (
mainModule = "github.com/apache/cassandra-gocql-driver"
defaultDriverName = "github.com/apache/cassandra-gocql-driver"
)

var driverName string
Expand All @@ -39,7 +39,7 @@ func init() {
if ok {
for _, d := range buildInfo.Deps {
if d.Path == mainModule {

Check failure on line 41 in version.go

View workflow job for this annotation

GitHub Actions / Unit tests (1.19)

undefined: mainModule

Check failure on line 41 in version.go

View workflow job for this annotation

GitHub Actions / Unit tests (1.20)

undefined: mainModule
driverName = mainModule
driverName = defaultDriverName
driverVersion = d.Version
if d.Replace != nil {
driverName = d.Replace.Path
Expand Down

0 comments on commit 338c8a3

Please sign in to comment.