Skip to content

Commit

Permalink
Use a more descriptive constant for the return code
Browse files Browse the repository at this point in the history
  • Loading branch information
cdchapman committed Nov 10, 2019
1 parent d294cb4 commit c1cf525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/update-company-data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def run
$stderr.puts 'done'

result = ldap.get_operation_result
if result.code == 0
if result.code == Net::LDAP::ResultCodeSuccess
if options[:output]
$stderr.print 'Updating company data… '
write(options[:output], ldif_out)
Expand Down

0 comments on commit c1cf525

Please sign in to comment.