style(cassandra): whitespace fixes

According to `gofmt`.
This commit is contained in:
Jens Rantil 2017-09-17 13:25:43 +02:00
parent 51acd3f3ad
commit 701bd68731
1 changed files with 3 additions and 6 deletions

View File

@ -154,7 +154,6 @@ func (p *Cassandra) SetVersion(version int, dirty bool) error {
return nil
}
// Return current keyspace version
func (p *Cassandra) Version() (version int, dirty bool, err error) {
query := `SELECT version, dirty FROM "` + p.config.MigrationsTable + `" LIMIT 1`
@ -192,7 +191,6 @@ func (p *Cassandra) Drop() error {
return nil
}
// Ensure version table exists
func (p *Cassandra) ensureVersionTable() error {
err := p.session.Query(fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (version bigint, dirty boolean, PRIMARY KEY(version))", p.config.MigrationsTable)).Exec()
@ -205,7 +203,6 @@ func (p *Cassandra) ensureVersionTable() error {
return nil
}
// ParseConsistency wraps gocql.ParseConsistency
// to return an error instead of a panicking.
func parseConsistency(consistencyStr string) (consistency gocql.Consistency, err error) {