Skip to content

Commit 1ded387

Browse files
committed
Cleanup code in lib/mini_racer.rb and remove tabs
1 parent 5fad3b6 commit 1ded387

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/mini_racer.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,12 @@ def write_heap_snapshot(file_or_io)
7575

7676
if String === file_or_io
7777
f = File.open(file_or_io, "w")
78-
implicit = true
78+
implicit = true
7979
else
8080
f = file_or_io
8181
end
8282

83-
if !(File === f)
84-
raise ArgumentError, "file_or_io"
85-
end
83+
raise ArgumentError, "file_or_io" unless File === f
8684

8785
f.write(heap_snapshot())
8886
ensure

test/mini_racer_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class MiniRacerTest < Minitest::Test
1111
# --stress_snapshot works around a bogus debug assert in V8
1212
# that terminates the process with the following error:
1313
#
14-
# Fatal error in ../deps/v8/src/heap/read-only-spaces.cc, line 70
15-
# Check failed: read_only_blob_checksum_ == snapshot_checksum (<unprintable> vs. 1099685679).
14+
# Fatal error in ../deps/v8/src/heap/read-only-spaces.cc, line 70
15+
# Check failed: read_only_blob_checksum_ == snapshot_checksum (<unprintable> vs. 1099685679).
1616
MiniRacer::Platform.set_flags! :stress_snapshot
1717

1818
def test_locale_mx

0 commit comments

Comments
 (0)