Skip to content

Commit

Permalink
Merge pull request #465 from TarsCloud/feat/github/action
Browse files Browse the repository at this point in the history
fix(report): Stat and Property report panic
  • Loading branch information
lbbniu authored May 8, 2023
2 parents 809185d + 1e50ca5 commit a93b5ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tars/propertyf.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ var (

func initProReport() error {
cfg := GetClientConfig()
if cfg.Property == "" || !strings.Contains(cfg.Property, "@") {
if cfg.Property == "" || (cfg.Locator == "" && !strings.Contains(cfg.Property, "@")) {
return fmt.Errorf("property emptry")
}
comm := GetCommunicator()
Expand Down
2 changes: 1 addition & 1 deletion tars/statf.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ var (

func initReport(app *application) error {
cfg := app.ClientConfig()
if cfg.Stat == "" || !strings.Contains(cfg.Stat, "@") {
if cfg.Stat == "" || (cfg.Locator == "" && !strings.Contains(cfg.Stat, "@")) {
statInited <- struct{}{}
return fmt.Errorf("stat init error")
}
Expand Down

0 comments on commit a93b5ad

Please sign in to comment.