Skip to content

Commit eebbd46

Browse files
committed
fix rubocop style issues
1 parent b0a19b5 commit eebbd46

File tree

11 files changed

+28
-28
lines changed

11 files changed

+28
-28
lines changed

lib/ldclient-rb/interfaces.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
require "ldclient-rb/interfaces/big_segment_store"
77
require "ldclient-rb/interfaces/migrations"
88
require "ldclient-rb/interfaces/hooks"
9-
require "ldclient-rb/interfaces/plugins"
9+
require "ldclient-rb/interfaces/plugins"

lib/ldclient-rb/interfaces/big_segment_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ def status
150150
end
151151
end
152152
end
153-
end
153+
end

lib/ldclient-rb/interfaces/data_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,4 @@ def initialize(kind, status_code, message, time)
262262
end
263263
end
264264
end
265-
end
265+
end

lib/ldclient-rb/interfaces/data_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ def initialize(available, stale)
110110
end
111111
end
112112
end
113-
end
113+
end

lib/ldclient-rb/interfaces/feature_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ def stop
159159
# def available? end
160160
end
161161
end
162-
end
162+
end

lib/ldclient-rb/interfaces/flag_tracker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ def initialize(key, old_value, new_value)
103103
end
104104
end
105105
end
106-
end
106+
end

lib/ldclient-rb/interfaces/hooks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ def initialize(key, context, default_value, method)
8585
end
8686
end
8787
end
88-
end
88+
end

lib/ldclient-rb/interfaces/migrations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ def build
9797
end
9898
end
9999
end
100-
end
100+
end

lib/ldclient-rb/interfaces/plugins.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class SdkMetadata
88
# The id of the SDK (e.g., "ruby-server-sdk")
99
# @return [String]
1010
attr_reader :name
11-
11+
1212
# The version of the SDK
1313
# @return [String]
1414
attr_reader :version
15-
15+
1616
# The wrapper name if this SDK is a wrapper
1717
# @return [String, nil]
1818
attr_reader :wrapper_name
19-
19+
2020
# The wrapper version if this SDK is a wrapper
2121
# @return [String, nil]
2222
attr_reader :wrapper_version
@@ -36,7 +36,7 @@ class ApplicationMetadata
3636
# The id of the application
3737
# @return [String, nil]
3838
attr_reader :id
39-
39+
4040
# The version of the application
4141
# @return [String, nil]
4242
attr_reader :version
@@ -54,11 +54,11 @@ class EnvironmentMetadata
5454
# Information about the SDK
5555
# @return [SdkMetadata]
5656
attr_reader :sdk
57-
57+
5858
# Information about the application
5959
# @return [ApplicationMetadata, nil]
6060
attr_reader :application
61-
61+
6262
# The SDK key used to initialize the SDK
6363
# @return [String, nil]
6464
attr_reader :sdk_key
@@ -133,4 +133,4 @@ def get_hooks(environment_metadata)
133133
end
134134
end
135135
end
136-
end
136+
end

lib/ldclient-rb/ldclient.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def postfork(wait_for_sec = 5)
9191
private def start_up(wait_for_sec)
9292
environment_metadata = get_environment_metadata
9393
plugin_hooks = get_plugin_hooks(environment_metadata)
94-
94+
9595
@hooks = Concurrent::Array.new(@config.hooks + plugin_hooks)
9696

9797
@shared_executor = Concurrent::SingleThreadExecutor.new
@@ -186,7 +186,7 @@ def postfork(wait_for_sec = 5)
186186
)
187187

188188
application_metadata = nil
189-
if @config.application && (!@config.application.empty?)
189+
if @config.application && !@config.application.empty?
190190
application_metadata = Interfaces::Plugins::ApplicationMetadata.new(
191191
id: @config.application[:id],
192192
version: @config.application[:version]

0 commit comments

Comments
 (0)