From 7982a7d3956910406e59952e1b215d5b4dd1d8e5 Mon Sep 17 00:00:00 2001 From: nopedial Date: Sat, 26 Oct 2013 11:30:26 +0200 Subject: set group to nil if no group is defined --- lib/oxidized/api/rest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized') 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] -- cgit v1.2.1