Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gems/ipynbdiff/lib/transformer.rb')
-rw-r--r--vendor/gems/ipynbdiff/lib/transformer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/gems/ipynbdiff/lib/transformer.rb b/vendor/gems/ipynbdiff/lib/transformer.rb
index 1b2c63bb35c..9e666a20aa5 100644
--- a/vendor/gems/ipynbdiff/lib/transformer.rb
+++ b/vendor/gems/ipynbdiff/lib/transformer.rb
@@ -27,7 +27,7 @@ module IpynbDiff
def validate_notebook(notebook)
notebook_json = Oj::Parser.usual.parse(notebook)
- return notebook_json if notebook_json.key?('cells')
+ return notebook_json if notebook_json&.key?('cells')
raise InvalidNotebookError
rescue EncodingError, Oj::ParseError, JSON::ParserError