rservicebus 0.0.47 → 0.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: