Skip to content

Commit 07e6a91

Browse files
committed
Prefer doing less
The require_relative does not need to examine entries in the $LOAD_PATH and its length does not affect lookup performance.
1 parent 6a4b70b commit 07e6a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/protobuf_nested_struct.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
require "google/protobuf"
55
require "google/protobuf/well_known_types"
66

7-
require "protobuf_nested_struct/version"
8-
require "protobuf_nested_struct/struct_pb"
7+
require_relative "protobuf_nested_struct/version"
8+
require_relative "protobuf_nested_struct/struct_pb"
99

1010
module ProtobufNestedStruct
1111
class Value

0 commit comments

Comments
 (0)