mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	pkg/tsdb: fix ineffassign isues
This commit is contained in:
		@@ -271,7 +271,7 @@ func parseQuery(model *simplejson.Json) (*CloudWatchQuery, error) {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	period := 300
 | 
			
		||||
	var period int
 | 
			
		||||
	if regexp.MustCompile(`^\d+$`).Match([]byte(p)) {
 | 
			
		||||
		period, err = strconv.Atoi(p)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user