diff options
author | Toon Claes <toon@gitlab.com> | 2019-06-28 14:28:29 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-06-28 14:28:29 +0200 |
commit | 288b050e5b226e403f9c88c3fe16fb4279714d69 (patch) | |
tree | 9b3f96b71cab616d44000c192ab5870098ee6c5f /app/serializers/environment_entity.rb | |
parent | 046527beb585b8086e8b280dee78f43417b9a753 (diff) | |
download | gitlab-ce-tc-no-more-try.tar.gz |
Enable Style/SafeNavigation coptc-no-more-try
I ran `rubocop -a --only Style/SafeNavigation` to correct all.
I could not enable `ConvertTry` cause it does not seem to be supported
by the version we're using.
https://gitlab.com/gitlab-org/gitlab-ce/issues/63875
Diffstat (limited to 'app/serializers/environment_entity.rb')
-rw-r--r-- | app/serializers/environment_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/environment_entity.rb b/app/serializers/environment_entity.rb index 8258135da4e..85d1ac370c6 100644 --- a/app/serializers/environment_entity.rb +++ b/app/serializers/environment_entity.rb @@ -55,7 +55,7 @@ class EnvironmentEntity < Grape::Entity end def cluster_platform_kubernetes? - deployment_platform && deployment_platform.is_a?(Clusters::Platforms::Kubernetes) + deployment_platform&.is_a?(Clusters::Platforms::Kubernetes) end def deployment_platform |