fix: resolve gofumpt and staticcheck lint errors
This commit is contained in:
@@ -901,9 +901,10 @@ func matchDecorator(line string) (string, bool) {
|
|||||||
for i := 0; i < len(rest); i++ {
|
for i := 0; i < len(rest); i++ {
|
||||||
ch := rest[i]
|
ch := rest[i]
|
||||||
if quote != 0 {
|
if quote != 0 {
|
||||||
if ch == '\\' {
|
switch ch {
|
||||||
|
case '\\':
|
||||||
i++
|
i++
|
||||||
} else if ch == quote {
|
case quote:
|
||||||
quote = 0
|
quote = 0
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -2300,7 +2300,6 @@ func (w *Writer) executeStatements(statements []string, connString string) error
|
|||||||
|
|
||||||
// finishReport writes the optional report file and prints the execution summary.
|
// finishReport writes the optional report file and prints the execution summary.
|
||||||
func (w *Writer) finishReport() error {
|
func (w *Writer) finishReport() error {
|
||||||
|
|
||||||
// Write report if path is specified
|
// Write report if path is specified
|
||||||
if reportPath, ok := w.options.Metadata["report_path"].(string); ok && reportPath != "" {
|
if reportPath, ok := w.options.Metadata["report_path"].(string); ok && reportPath != "" {
|
||||||
if err := w.writeReport(reportPath); err != nil {
|
if err := w.writeReport(reportPath); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user