Skip to content

Commit

Permalink
[YUNIKORN-2856] Remove redundent conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
400Ping committed Sep 6, 2024
1 parent 72b0afc commit e954e3f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/webservice/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,9 +855,7 @@ func getApplication(w http.ResponseWriter, r *http.Request) {
return
}
var app *objects.Application
if len(unescapedQueueName) == 0 {
app = partitionContext.GetApplication(application)
} else {
else {

Check failure on line 858 in pkg/webservice/handlers.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected else, expected }) (typecheck)

Check failure on line 858 in pkg/webservice/handlers.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected else, expected } (typecheck)

Check failure on line 858 in pkg/webservice/handlers.go

View workflow job for this annotation

GitHub Actions / build

expected statement, found 'else' (typecheck)
queueErr := validateQueue(unescapedQueueName)
if queueErr != nil {
buildJSONErrorResponse(w, queueErr.Error(), http.StatusBadRequest)
Expand Down

0 comments on commit e954e3f

Please sign in to comment.