Skip to content

Commit

Permalink
linter and fmt debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Oct 9, 2023
1 parent 1fc8e76 commit ae5eb9e
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 27 deletions.
4 changes: 1 addition & 3 deletions api/auth/validate_oauth.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package auth

Expand Down
3 changes: 0 additions & 3 deletions api/build/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ func GetBuildToken(c *gin.Context) {
"user": cl.Subject,
}).Infof("generating build token for build %s/%d", r.GetFullName(), b.GetNumber())

fmt.Println("EASTON THIS IS THE BUILD WE COMPARE STATUS TO")
fmt.Println(b.GetStatus())
fmt.Println(b.GetNumber())
// if build is not in a pending state, then a build token should not be needed - conflict
if !strings.EqualFold(b.GetStatus(), constants.StatusPending) {
retErr := fmt.Errorf("unable to mint build token: build is not in pending state")
Expand Down
4 changes: 1 addition & 3 deletions api/queue/queue.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package queue

Expand Down
4 changes: 1 addition & 3 deletions database/build/list_pending_running_repo.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package build

Expand Down
4 changes: 1 addition & 3 deletions database/resource.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Ine. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package database

Expand Down
4 changes: 1 addition & 3 deletions database/validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Ine. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package database

Expand Down
4 changes: 1 addition & 3 deletions database/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Ine. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package database

Expand Down
4 changes: 1 addition & 3 deletions router/middleware/signing_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package middleware

Expand Down
4 changes: 1 addition & 3 deletions router/queue.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.
// SPDX-License-Identifier: Apache-2.0

package router

Expand Down

0 comments on commit ae5eb9e

Please sign in to comment.