[Groonga-commit] groonga/groonga at 2ebfebd [master] Remove a needless condition

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 3 21:50:49 JST 2018


Kouhei Sutou	2018-03-03 21:50:49 +0900 (Sat, 03 Mar 2018)

  New Revision: 2ebfebdeea5812bf0efdaa6fc259cbe277f9d0f9
  https://github.com/groonga/groonga/commit/2ebfebdeea5812bf0efdaa6fc259cbe277f9d0f9

  Message:
    Remove a needless condition

  Modified files:
    lib/file_lock.c

  Modified: lib/file_lock.c (+1 -5)
===================================================================
--- lib/file_lock.c    2018-03-03 21:45:43 +0900 (d39bde770)
+++ lib/file_lock.c    2018-03-03 21:50:49 +0900 (a2e4e40f0)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
-  Copyright(C) 2017 Brazil
+  Copyright(C) 2017-2018 Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -59,10 +59,6 @@ grn_file_lock_acquire(grn_ctx *ctx,
   int i;
   int n_lock_tries = timeout;
 
-  if (!file_lock->path) {
-    return GRN_TRUE;
-  }
-
   for (i = 0; i < n_lock_tries; i++) {
 #ifdef WIN32
     file_lock->handle = CreateFile(file_lock->path,
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180303/c764922a/attachment.htm 



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