Post::Windows::Registry.normalize_key: Return hive without trailing slash

This commit is contained in:
bcoles 2022-08-07 21:50:58 +10:00
parent 44ef271623
commit e99783f329
No known key found for this signature in database
GPG Key ID: 3EB700FCFBA899B5
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ protected
raise ArgumentError, "Cannot normalize unknown key: #{key}"
end
# print_status("Normalized #{key} to #{keys.join("\\")}")
return keys.join("\\")
return keys.compact.join("\\")
end
#