- if label = attributes[:label]
- resuls << "label #{sensor} \"#{label}\""
- end
-
- if compute = attributes[:compute]
- resuls << "compute #{sensor} #{compute}"
- end
+ results << "label #{sensor} \"#{attributes[:label]}\"" if attributes[:label]
+ results << "compute #{sensor} #{attributes[:compute]}" if attributes[:compute]