소스 검색

Merge pull request #460 from EMQmyd/pligList

debug():key of g_source
EMQmyd 4 년 전
부모
커밋
9ff48d4e91
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/sourceMeta.go

+ 1 - 1
plugins/sourceMeta.go

@@ -49,6 +49,7 @@ func newUiSource(fi *fileSource) *uiSource {
 var g_sourceProperty map[string]*sourceProperty
 var g_sourceProperty map[string]*sourceProperty
 
 
 func readSourceMetaFile(filePath string) error {
 func readSourceMetaFile(filePath string) error {
+	fileName := path.Base(filePath)
 	ptrMeta := new(fileSource)
 	ptrMeta := new(fileSource)
 	err := common.ReadJsonUnmarshal(filePath, ptrMeta)
 	err := common.ReadJsonUnmarshal(filePath, ptrMeta)
 	if nil != err || 0 == len(ptrMeta.ConfKeys) {
 	if nil != err || 0 == len(ptrMeta.ConfKeys) {
@@ -72,7 +73,6 @@ func readSourceMetaFile(filePath string) error {
 	property.cf = yamlData
 	property.cf = yamlData
 	property.meta = newUiSource(ptrMeta)
 	property.meta = newUiSource(ptrMeta)
 
 
-	fileName := path.Base(filePath)
 	g_sourceProperty[fileName] = property
 	g_sourceProperty[fileName] = property
 	return err
 	return err
 }
 }