Skip to content

Commit ed25cb4

Browse files
chemidyhiranya911
authored andcommitted
golint - remove redundant if ...; err != nil check (#59)
* golint - remove redundant if ...; err != nil check * add golint check on travis.yml
1 parent 0005519 commit ed25cb4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
language: go
22
go_import_path: firebase.google.com/go
3-
script: go test -v -test.short ./...
3+
before_install:
4+
- go get github.com/golang/lint/golint
5+
script:
6+
- golint -set_exit_status $(go list ./...)
7+
- go test -v -test.short ./...
48

integration/storage/storage_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,5 @@ func verifyBucket(bucket *gcs.BucketHandle) error {
116116
}
117117

118118
// Delete the object
119-
if err := o.Delete(ctx); err != nil {
120-
return err
121-
}
122-
return nil
119+
return o.Delete(ctx)
123120
}

0 commit comments

Comments
 (0)