Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: copy years and test nil checks
  • Loading branch information
plyr4 committed Mar 23, 2023
commit b22655d0f0b2d5f5470362444a8487685ee94833
2 changes: 1 addition & 1 deletion vela/admin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.

Expand Down
2 changes: 1 addition & 1 deletion vela/authentication.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2022 Target Brands, Inc. All rights reserved.
// Copyright (c) 2023 Target Brands, Inc. All rights reserved.
//
// Use of this source code is governed by the LICENSE file in this repository.

Expand Down
5 changes: 0 additions & 5 deletions vela/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@ func TestVela_Authentication_ValidateToken_200(t *testing.T) {
t.Errorf("ValidateToken returned error %v", err)
}

if resp == nil {
// Fatal so that nil resp is not checked
t.Fatal("ValidateToken returned nil response")
}

if resp.StatusCode != http.StatusOK {
t.Errorf("ValidateToken returned %v, want %v", resp.StatusCode, http.StatusOK)
}
Expand Down