Skip to content

Commit d1501a9

Browse files
committed
chore: minor code cleanup
1 parent e768583 commit d1501a9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

api/api.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,8 @@ func (api *api) GetApp(dbApp *db.App) (*App, error) {
476476
"app_id": dbApp.ID,
477477
}).Error("Failed to get isolated app balance")
478478
return nil, err
479-
} else {
480-
response.Balance = balance
481479
}
480+
response.Balance = balance
482481
}
483482

484483
return &response, nil

nip47/controllers/get_balance_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ type getBalanceResponse struct {
2121
// BudgetRenewal string `json:"budget_renewal"`
2222
}
2323

24-
// TODO: remove checkPermission - can it be a middleware?
2524
func (controller *nip47Controller) HandleGetBalanceEvent(ctx context.Context, nip47Request *models.Request, requestEventId uint, app *db.App, publishResponse publishFunc) {
2625

2726
logger.Logger.WithFields(logrus.Fields{

0 commit comments

Comments
 (0)