Răsfoiți Sursa

removing non necessary check to empty string since bingen defaults to __unknown__

Signed-off-by: Alan Rodrigues <alanr5691@yahoo.com>
Alan Rodrigues 3 ani în urmă
părinte
comite
2683f7b738
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      pkg/kubecost/asset.go

+ 1 - 1
pkg/kubecost/asset.go

@@ -1262,7 +1262,7 @@ func (d *Disk) add(that *Disk) {
 
 	d.ByteHours += that.ByteHours
 
-	if that.StorageClass != "" && that.StorageClass != UnknownStorageClass {
+	if that.StorageClass != UnknownStorageClass {
 		d.StorageClass = that.StorageClass
 	}
 }