Skip to content

Commit c8988fa

Browse files
committed
use unless instead of if
1 parent de89990 commit c8988fa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gapic-generator/lib/gapic/presenters/service_presenter.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,7 @@ def drift_manifest
538538
}
539539
}
540540
}
541-
if !@service.api_version.empty?
542-
h[:apiVersion] = @service.api_version
543-
end
544-
541+
h[:apiVersion] = @service.api_version unless @service.api_version.empty?
545542
return h
546543
end
547544

0 commit comments

Comments
 (0)