Fix common typos
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Andinus 2020-03-27 01:23:49 +05:30
parent 8990216f18
commit b01aaa4988
Signed by: andinus
GPG Key ID: B67D55D482A799FD
2 changed files with 2 additions and 2 deletions

View File

@ -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{}

View File

@ -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 {