rservicebus 0.0.47 → 0.0.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,13 +7,13 @@ module RServiceBus
7
7
 
8
8
 
9
9
  def checkPayloadForNumberOfColumns( payload )
10
- if @QueryStringParts.has_key?("cols") then
11
-
12
- cols = @QueryStringParts["cols"][0].to_i
13
- payload.each_with_index do |row, idx|
14
- if row.length != cols then
15
- raise "Expected number of columns, #{cols}, Actual number of columns, #{row.length}, on line, #{idx}"
16
- end
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rservicebus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.47
4
+ version: 0.0.48
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: