Fix common typos
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8990216f18
commit
b01aaa4988
|
@ -10,7 +10,7 @@ import (
|
|||
)
|
||||
|
||||
// Register takes in registration details and returns an error. If
|
||||
// error doesn't equal nil then the registration was unsucessful.
|
||||
// error doesn't equal nil then the registration was unsuccessful.
|
||||
// regInfo should have username, password & ip.
|
||||
func Register(db *sqlite3.DB, regInfo map[string]string) error {
|
||||
u := user.User{}
|
||||
|
|
|
@ -25,7 +25,7 @@ func Init(db *DB) {
|
|||
// PERSEUS_DBPATH is checked. If it doesn't exist then use set
|
||||
// it to the default (perseus.db). Note that this is LookupEnv
|
||||
// so if the user has set PERSEUS_DBPATH="" then it'll return
|
||||
// true for exists as it should because techincally user has
|
||||
// true for exists as it should because technically user has
|
||||
// set the env var, the sql.Open statement will fail though.
|
||||
envDBPath, exists := os.LookupEnv("PERSEUS_DBPATH")
|
||||
if !exists {
|
||||
|
|
Loading…
Reference in New Issue