[logaling-commit] logaling/logaling-command [master] Use not ...nil?

Back to archive index

SHIMADA Koji null+****@clear*****
Fri Aug 17 10:23:24 JST 2012


SHIMADA Koji	2012-08-17 10:23:24 +0900 (Fri, 17 Aug 2012)

  New Revision: ceaed62f3e5c8cc7abe35849ab87579f7f7b6432
  https://github.com/logaling/logaling-command/commit/ceaed62f3e5c8cc7abe35849ab87579f7f7b6432

  Log:
    Use not ...nil?

  Modified files:
    lib/logaling/repository.rb

  Modified: lib/logaling/repository.rb (+1 -1)
===================================================================
--- lib/logaling/repository.rb    2012-08-17 10:22:42 +0900 (0a4d333)
+++ lib/logaling/repository.rb    2012-08-17 10:23:24 +0900 (64cc0e6)
@@ -169,7 +169,7 @@ module Logaling
     end
 
     def glossary_exists?(project_name, source_language, target_language)
-      find_glossary(project_name, source_language, target_language) ? true : false
+      not find_glossary(project_name, source_language, target_language).nil?
     end
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



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