[Groonga-commit] groonga/grngo at 5f361dc [master] Apply go fmt.

Back to archive index

susumu.yata null+****@clear*****
Fri Jun 19 15:27:53 JST 2015


susumu.yata	2015-06-19 15:27:53 +0900 (Fri, 19 Jun 2015)

  New Revision: 5f361dc355a83eafc7c2f861b23dba1981370ed1
  https://github.com/groonga/grngo/commit/5f361dc355a83eafc7c2f861b23dba1981370ed1

  Message:
    Apply go fmt.

  Modified files:
    grn.go
    grn_test.go

  Modified: grn.go (+6 -6)
===================================================================
--- grn.go    2015-06-19 15:26:56 +0900 (ed2b3fe)
+++ grn.go    2015-06-19 15:27:53 +0900 (d53a196)
@@ -27,7 +27,7 @@ const (
 	False = Bool(0)
 )
 
-func NullInt() Int           { return Int(math.MinInt64) }
+func NullInt() Int { return Int(math.MinInt64) }
 
 type TypeID int
 
@@ -248,11 +248,11 @@ func OpenGrnDB(path string) (*GrnDB, error) {
 
 // Close() closes a handle.
 func (db *GrnDB) Close() error {
-  rc := C.grn_obj_close(db.ctx, db.obj)
-  if rc != C.GRN_SUCCESS {
-    closeGrnCtx(db.ctx)
-    return fmt.Errorf("grn_obj_close() failed: rc = %d", rc)
-  }
+	rc := C.grn_obj_close(db.ctx, db.obj)
+	if rc != C.GRN_SUCCESS {
+		closeGrnCtx(db.ctx)
+		return fmt.Errorf("grn_obj_close() failed: rc = %d", rc)
+	}
 	return closeGrnCtx(db.ctx)
 }
 

  Modified: grn_test.go (+1 -1)
===================================================================
--- grn_test.go    2015-06-19 15:26:56 +0900 (121bf4a)
+++ grn_test.go    2015-06-19 15:27:53 +0900 (ac77d78)
@@ -952,7 +952,7 @@ func benchmarkGrnDBSelectForVector(b *testing.B, valueType string) {
 		if err != nil {
 			b.Fatalf("DB.Query() failed: %s", err)
 		}
-		if len(bytes) < numTestRows * 5 {
+		if len(bytes) < numTestRows*5 {
 			b.Fatalf("DB.Query() failed: %s", err)
 		}
 	}
-------------- next part --------------
HTML����������������������������...
Download 



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