Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Alok Kumar Singh <[email protected]>
  • Loading branch information
akstron committed Nov 29, 2024
1 parent 10bd9aa commit a682db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cassandra/config/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (sc *schemaCreator) constructTemplateParams() templateParams {
}

Check warning on line 45 in pkg/cassandra/config/schema.go

View check run for this annotation

Codecov / codecov/patch

pkg/cassandra/config/schema.go#L38-L45

Added lines #L38 - L45 were not covered by tests
}

func (_ *schemaCreator) getQueryFileAsBytes(fileName string, params templateParams) ([]byte, error) {
func (*schemaCreator) getQueryFileAsBytes(fileName string, params templateParams) ([]byte, error) {
tmpl, err := template.ParseFS(schemaFile, fileName)
if err != nil {
return nil, err
Expand All @@ -60,7 +60,7 @@ func (_ *schemaCreator) getQueryFileAsBytes(fileName string, params templatePara
return result.Bytes(), nil

Check warning on line 60 in pkg/cassandra/config/schema.go

View check run for this annotation

Codecov / codecov/patch

pkg/cassandra/config/schema.go#L60

Added line #L60 was not covered by tests
}

func (_ *schemaCreator) getQueriesFromBytes(queryFile []byte) ([]string, error) {
func (*schemaCreator) getQueriesFromBytes(queryFile []byte) ([]string, error) {
lines := bytes.Split(queryFile, []byte("\n"))

var extractedLines [][]byte
Expand Down

0 comments on commit a682db2

Please sign in to comment.