diff --git a/lib/rbs/collection/config/lockfile.rb b/lib/rbs/collection/config/lockfile.rb index 5f4c4c93f3..7496c6e409 100644 --- a/lib/rbs/collection/config/lockfile.rb +++ b/lib/rbs/collection/config/lockfile.rb @@ -31,7 +31,7 @@ def to_lockfile data = { "path" => path.to_s, "gems" => gems.each_value.sort_by {|g| g[:name] }.map {|hash| library_data(hash) }, - "gemfile_lock_path" => gemfile_lock_path.to_s + "gemfile_lock_path" => gemfile_lock_path&.to_s } data.delete("gems") if gems.empty?