Skip to content

Commit

Permalink
refactor: fix linter errors (#32)
Browse files Browse the repository at this point in the history
* refactor: fix staticcheck linter errors

* refactor: fix stylecheck linter errors

* refactor: fix wsl (whitespace) linter errors
  • Loading branch information
jbrockopp authored and plyr4 committed Dec 19, 2019
1 parent 4c14c71 commit 913e026
Show file tree
Hide file tree
Showing 33 changed files with 289 additions and 69 deletions.
3 changes: 1 addition & 2 deletions database/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ func TestDatabase_Build_Nullify(t *testing.T) {

func TestDatabase_Build_Nullify_Empty(t *testing.T) {
// setup types
b := &Build{}
b = nil
var b *Build

// run test
got := b.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ func TestDatabase_Hook_Nullify(t *testing.T) {

func TestDatabase_Hook_Nullify_Empty(t *testing.T) {
// setup types
h := &Hook{}
h = nil
var h *Hook

// run test
got := h.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func TestDatabase_Log_Nullify(t *testing.T) {

func TestDatabase_Log_Nullify_Empty(t *testing.T) {
// setup types
l := &Log{}
l = nil
var l *Log

// run test
got := l.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ func TestDatabase_Repo_Nullify(t *testing.T) {

func TestDatabase_Repo_Nullify_Empty(t *testing.T) {
// setup types
r := &Repo{}
r = nil
var r *Repo

// run test
got := r.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ func TestDatabase_Secret_Nullify(t *testing.T) {

func TestDatabase_Secret_Nullify_Empty(t *testing.T) {
// setup types
s := &Secret{}
s = nil
var s *Secret

// run test
got := s.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ func TestDatabase_Service_Nullify(t *testing.T) {

func TestDatabase_Service_Nullify_Empty(t *testing.T) {
// setup types
s := &Service{}
s = nil
var s *Service

// run test
got := s.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ func TestDatabase_Step_Nullify(t *testing.T) {

func TestDatabase_Step_Nullify_Empty(t *testing.T) {
// setup types
s := &Step{}
s = nil
var s *Step

// run test
got := s.Nullify()
Expand Down
3 changes: 1 addition & 2 deletions database/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func TestDatabase_User_Nullify(t *testing.T) {

func TestDatabase_User_Nullify_Empty(t *testing.T) {
// setup types
u := &User{}
u = nil
var u *User

// run test
got := u.Nullify()
Expand Down
Loading

0 comments on commit 913e026

Please sign in to comment.