Matheus Querido 6 years ago
parent
commit
182140fc9a
2 changed files with 0 additions and 3 deletions
  1. 0 3
      core/database/database.go
  2. BIN
      debug

+ 0 - 3
core/database/database.go

@@ -19,7 +19,6 @@ type Config struct {
19 19
 }
20 20
 
21 21
 var IsConnected bool
22
-var Error error
23 22
 
24 23
 //Init : iniciação do metodo de conexão
25 24
 func Init(config Config) error {
@@ -39,12 +38,10 @@ func Init(config Config) error {
39 38
 
40 39
 	if err != nil {
41 40
 		IsConnected = false
42
-		Error = err
43 41
 	}
44 42
 
45 43
 	if err = DB.Ping(); err != nil {
46 44
 		IsConnected = false
47
-		Error = err
48 45
 	}
49 46
 
50 47
 	return err

BIN
debug