Skip to content

Commit 1185c5f

Browse files
committed
chore: remove unnecessary parens
Signed-off-by: Travis Raines <[email protected]>
1 parent 835018c commit 1185c5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/domain/power-status.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func getVaultCredsAll(compMap map[string]*componentPowerInfo) error {
416416
//The credstore layer caches creds, so this should be fast.
417417

418418
for k, v := range compMap {
419-
un, pw, err = (ccStore).GetControllerCredentials(k)
419+
un, pw, err = ccStore.GetControllerCredentials(k)
420420
if err != nil {
421421
return fmt.Errorf("ERROR: Can't get BMC creds for '%s': %v", k, err)
422422
}
@@ -1004,13 +1004,13 @@ func toPCSPowerActions(rfPowerActions []string) []string {
10041004
// If it has been awhile since the last update, attempt to
10051005
// become the new master.
10061006
func getPowerStatusMaster() bool {
1007-
lockErr := (distLocker).DistributedTimedLock(distLockMaxTime)
1007+
lockErr := distLocker.DistributedTimedLock(distLockMaxTime)
10081008
if lockErr != nil {
10091009
// Someone else is already doing this check which means we aren't going to be master.
10101010
return false
10111011
}
10121012
defer func() {
1013-
unlockErr := (distLocker).Unlock()
1013+
unlockErr := distLocker.Unlock()
10141014
if unlockErr != nil {
10151015
glogger.Errorf("ERROR releasing distributed lock: %v", unlockErr)
10161016
}

0 commit comments

Comments
 (0)