Browse Source

Code refactoring

Vova Tkach 6 years ago
parent
commit
c3c718ce49

+ 1 - 5
engine/actions/action_first_user.go

@@ -1,9 +1,5 @@
 package actions
 
-import (
-	"fmt"
-)
-
 func (this *Action) Action_first_user() {
 	if dbe := this.use_database(); dbe != nil {
 		this.msg_error(dbe.Error())
@@ -41,5 +37,5 @@ func (this *Action) Action_first_user() {
 	}
 
 	// Reload current page
-	this.write(fmt.Sprintf(`window.location.reload(false);`))
+	this.write(`window.location.reload(false);`)
 }

+ 1 - 1
engine/actions/action_mysql.go

@@ -79,5 +79,5 @@ func (this *Action) Action_mysql() {
 	}
 
 	// Reload current page
-	this.write(fmt.Sprintf(`window.location.reload(false);`))
+	this.write(`window.location.reload(false);`)
 }

+ 1 - 3
engine/actions/action_signin.go

@@ -3,8 +3,6 @@ package actions
 import (
 	"database/sql"
 	_ "github.com/go-sql-driver/mysql"
-
-	"fmt"
 )
 
 func (this *Action) Action_signin() {
@@ -57,5 +55,5 @@ func (this *Action) Action_signin() {
 	this.wrapper.Session.SetInt("UserId", user_id)
 
 	// Reload current page
-	this.write(fmt.Sprintf(`window.location.reload(false);`))
+	this.write(`window.location.reload(false);`)
 }