diff options
author | nopedial <shafez@ike-2.local> | 2013-10-26 11:30:26 +0200 |
---|---|---|
committer | nopedial <shafez@ike-2.local> | 2013-10-26 11:30:26 +0200 |
commit | 7982a7d3956910406e59952e1b215d5b4dd1d8e5 (patch) | |
tree | 3c92898daade43cdbbec317c07c2073b2a40e730 | |
parent | 713bccb736d87283d98781e7c557cd48bae24aa3 (diff) |
set group to nil if no group is defined
-rw-r--r-- | lib/oxidized/api/rest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/api/rest.rb b/lib/oxidized/api/rest.rb index 17fade1..cdf5c80 100644 --- a/lib/oxidized/api/rest.rb +++ b/lib/oxidized/api/rest.rb @@ -50,7 +50,7 @@ module Oxidized if $1.include? '/' group, node = $1.split("/")[1..2] else - group, node = 0, $1 + group, node = nil, $1 end ascii = if node[-4..-1] == '.txt' node = node[0..-5] |