rservicebus 0.0.47 → 0.0.48
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rservicebus/Monitor/CsvDir.rb +7 -7
- metadata +1 -1
@@ -7,13 +7,13 @@ module RServiceBus
|
|
7
7
|
|
8
8
|
|
9
9
|
def checkPayloadForNumberOfColumns( payload )
|
10
|
-
if @QueryStringParts.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
return if @QueryStringParts.nil?
|
11
|
+
return unless @QueryStringParts.has_key?("cols")
|
12
|
+
|
13
|
+
cols = @QueryStringParts["cols"][0].to_i
|
14
|
+
payload.each_with_index do |row, idx|
|
15
|
+
if row.length != cols then
|
16
|
+
raise "Expected number of columns, #{cols}, Actual number of columns, #{row.length}, on line, #{idx}"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|