summaryrefslogtreecommitdiff
path: root/lib/chef/win32/unicode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/win32/unicode.rb')
-rw-r--r--lib/chef/win32/unicode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/win32/unicode.rb b/lib/chef/win32/unicode.rb
index b0fcf6492d..d531463be0 100644
--- a/lib/chef/win32/unicode.rb
+++ b/lib/chef/win32/unicode.rb
@@ -38,7 +38,7 @@ module FFI
# Find the length of the string
length = 0
last_char = nil
- while last_char != "\000\000" do
+ while last_char != "\000\000"
length += 1
last_char = self.get_bytes(0, length * 2)[-2..-1]
end