go-graphite / carbonapi

Empty string test can be improved CRT-A0004
Anti-pattern
Major
1 occurrence in this check
replace len(s) == 0 with s == ""
132
133// IntervalString converts a sign and string into a number of seconds
134func parseInterval(s string, defaultSign int) (int64, error) {
135	if len(s) == 0 {136		return 0, nil
137	}
138	sign := defaultSign