Преглед на файлове

refactor: fix unreachable codes

This is a complementary PR to lf-edge/ekuiper#1849.

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>
xjasonlyu преди 1 година
родител
ревизия
5f0deec727
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      internal/topo/transform/template.go

+ 2 - 3
internal/topo/transform/template.go

@@ -18,11 +18,12 @@ import (
 	"bytes"
 	"encoding/json"
 	"fmt"
+	"text/template"
+
 	"github.com/lf-edge/ekuiper/internal/conf"
 	"github.com/lf-edge/ekuiper/internal/converter"
 	"github.com/lf-edge/ekuiper/pkg/ast"
 	"github.com/lf-edge/ekuiper/pkg/message"
-	"text/template"
 )
 
 // TransFunc is the function to transform data
@@ -181,6 +182,4 @@ func SelectMap(input interface{}, fields []string) (interface{}, error) {
 	default:
 		return input, fmt.Errorf("unsupported type %v", input)
 	}
-
-	return input, nil
 }