[Groonga-commit] groonga/grngo at 7fb2a4d [master] Apply go fmt.

Back to archive index

susumu.yata null+****@clear*****
Thu Jul 2 16:19:04 JST 2015


susumu.yata	2015-07-02 16:19:04 +0900 (Thu, 02 Jul 2015)

  New Revision: 7fb2a4d8c49a57885d7b50c5211a0657aba93dcd
  https://github.com/groonga/grngo/commit/7fb2a4d8c49a57885d7b50c5211a0657aba93dcd

  Message:
    Apply go fmt.

  Modified files:
    grngo.go
    grngo_test.go

  Modified: grngo.go (+2 -2)
===================================================================
--- grngo.go    2015-07-02 16:05:52 +0900 (3c90167)
+++ grngo.go    2015-07-02 16:19:04 +0900 (ea3494a)
@@ -338,8 +338,8 @@ func (db *DB) Close() error {
 // you should call Refresh just before or reopen the database immediately after
 // that.
 func (db *DB) Refresh() error {
-	for _, table := range(db.tables) {
-		for _, column := range(table.columns) {
+	for _, table := range db.tables {
+		for _, column := range table.columns {
 			C.grn_obj_unlink(db.ctx, column.obj)
 		}
 		C.grn_obj_unlink(db.ctx, table.obj)

  Modified: grngo_test.go (+1 -1)
===================================================================
--- grngo_test.go    2015-07-02 16:05:52 +0900 (fbe5983)
+++ grngo_test.go    2015-07-02 16:19:04 +0900 (c28865d)
@@ -271,7 +271,7 @@ func TestOpenDB(t *testing.T) {
 }
 
 func TestDBRefresh(t *testing.T) {
-	dirPath, _, db, _, _ := createTempColumn(t, "Table", nil, "Value", "Bool", nil);
+	dirPath, _, db, _, _ := createTempColumn(t, "Table", nil, "Value", "Bool", nil)
 	defer removeTempDB(t, dirPath, db)
 	if err := db.Refresh(); err != nil {
 		t.Fatalf("DB.Refresh() failed: %v", err)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index