fixed lint issue

This commit is contained in:
MitulShah1
2025-04-20 12:52:46 +05:30
parent 46aa8dbd7c
commit d431239437

View File

@@ -4,7 +4,6 @@ import (
"errors" "errors"
"fmt" "fmt"
"log" "log"
"regexp"
"strings" "strings"
"time" "time"
"unicode" "unicode"
@@ -24,11 +23,6 @@ type Storage struct {
ttl int ttl int
} }
var (
// identifierPattern matches valid Cassandra identifiers
identifierPattern = regexp.MustCompile(`^[a-zA-Z0-9_]+$`)
)
// validateIdentifier checks if an identifier is valid // validateIdentifier checks if an identifier is valid
func validateIdentifier(name, identifierType string) (string, error) { func validateIdentifier(name, identifierType string) (string, error) {
if name == "" { if name == "" {