Skip to content

Commit fa52996

Browse files
author
Steve Ramage
committed
Fixes lint issues with #647
1 parent b63f099 commit fa52996

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1. Write awesome code ...
1212
1. `make test` to run all tests against all database versions
1313
1. Push code and open Pull Request
14-
14+
:wq
1515
Some more helpful commands:
1616

1717
* You can specify which database/ source tests to run:

database/mongodb/mongodb.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const LockIndexName = "lock_unique_key" // the name of the inde
3636
const contextWaitTimeout = 5 * time.Second // how long to wait for the request to mongo to block/wait for.
3737

3838
var (
39-
ErrNoDatabaseName = fmt.Errorf("no database name")
39+
ErrNoDatabaseName = fmt.Errorf("no database name")
4040
ErrNilConfig = fmt.Errorf("no config")
4141
ErrTypoAndNotNonTypoUsed = fmt.Errorf("both x-advisory-lock-timeout-interval and x-advisory-lock-timout-interval were specified")
4242
)
@@ -146,9 +146,9 @@ func (m *Mongo) Open(dsn string) (database.Driver, error) {
146146

147147
lockTimeout := lockTimeoutIntervalValue
148148

149-
if (lockTimeoutIntervalValue != "" && lockTimeoutIntervalValueFromTypo != "") {
149+
if lockTimeoutIntervalValue != "" && lockTimeoutIntervalValueFromTypo != "" {
150150
return nil, ErrTypoAndNotNonTypoUsed
151-
} else if (lockTimeoutIntervalValueFromTypo != "") {
151+
} else if lockTimeoutIntervalValueFromTypo != "" {
152152
lockTimeout = lockTimeoutIntervalValueFromTypo
153153
}
154154

0 commit comments

Comments
 (0)