From 94001afc2947ebb0e01f2467181820b08d6e3c80 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 19 Jul 2010 01:38:06 +0300 Subject: [PATCH] bit cleaner code --- lib/redistat/label.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/redistat/label.rb b/lib/redistat/label.rb index 5f53dbc..5757463 100644 --- a/lib/redistat/label.rb +++ b/lib/redistat/label.rb @@ -11,8 +11,7 @@ module Redistat end def save - db.set("Redistat:lables:#{@hash}", @name) - @saved = true + @saved = (db.set("Redistat:lables:#{@hash}", @name) == "OK") self end