Skip to content

Commit

Permalink
[frontend] Refactor BackendFile#to_s method
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jun 25, 2018
1 parent 2b108f0 commit aeac96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/backend/file.rb
Expand Up @@ -58,7 +58,7 @@ def file(query = {})
# Converts file into a String if it's valid
def to_s(query = {})
file(query)
!@file.nil? && valid? ? ::File.open(@file.path).read : nil
@file && valid? ? ::File.open(@file.path).read : nil
end

# Reloads from Backend the file content
Expand Down

0 comments on commit aeac96d

Please sign in to comment.