Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ziprandom committed Sep 4, 2017
1 parent 88164b5 commit cf83b36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/support/custom_context_schema.cr
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "json"
require "tempfile"

class CustomContext < GraphQL::Schema::Context

Expand Down Expand Up @@ -48,7 +47,7 @@ module LogStore
`touch #{TEMPFILENAME}`;

def read_logs
raw_content = File.read(TEMPFILENAME, nil, "[]l")
raw_content = File.read(TEMPFILENAME)
Array(LogType).from_json raw_content
rescue
[] of LogType
Expand Down

0 comments on commit cf83b36

Please sign in to comment.