瀏覽代碼

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
 }