Ruby mogilefs-client dev/users discussion/patches/bugs/help/...
 help / color / Atom feed
* [PATCH] pool: simplify empty class definition
@ 2017-06-26  2:33 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-06-26  2:33 UTC (permalink / raw)
  To: mogilefs-client-public

This should compile to smaller bytecode with YARV
---
 lib/mogilefs/pool.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mogilefs/pool.rb b/lib/mogilefs/pool.rb
index e7c4009..390e4a9 100644
--- a/lib/mogilefs/pool.rb
+++ b/lib/mogilefs/pool.rb
@@ -11,7 +11,7 @@ class MogileFS::Pool
   # Default: 2
   attr_accessor :purge_keep
 
-  class BadObjectError < RuntimeError; end
+  BadObjectError = Class.new(RuntimeError)
 
   def initialize(klass, *args)
     @args = args
-- 
EW


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26  2:33 [PATCH] pool: simplify empty class definition Eric Wong

Ruby mogilefs-client dev/users discussion/patches/bugs/help/...

Archives are clonable:
	git clone --mirror https://yhbt.net/mogilefs-client-public
	git clone --mirror http://ou63pmih66umazou.onion/mogilefs-client-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.file-systems.mogilefs.ruby
	nntp://ou63pmih66umazou.onion/inbox.comp.file-systems.mogilefs.ruby

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git