From 6538483e55038cfeaf2ef5632ccfad305cc3cc3b Mon Sep 17 00:00:00 2001 From: TeoV Date: Mon, 30 Jul 2018 07:43:34 -0400 Subject: [PATCH] Remove else from if --- engine/spls_qos.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/spls_qos.go b/engine/spls_qos.go index 6671c3a75..c6414df4e 100755 --- a/engine/spls_qos.go +++ b/engine/spls_qos.go @@ -69,10 +69,9 @@ func (lcs *QOSSupplierSorter) SortSuppliers(prflID string, suppls []*Supplier, } } if hasMetric == false { //if not have populate with default value + srtData[metric] = -1 if metric == utils.MetaPDD { srtData[metric] = 1000000 - } else { - srtData[metric] = -1 } } }