mirror of
https://github.com/gofiber/storage.git
synced 2025-10-24 17:00:28 +08:00
fixed lint issue
This commit is contained in:
@@ -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 == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user