Skip to content

Commit

Permalink
Fixed review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
  • Loading branch information
Vasu1105 committed Oct 17, 2017
1 parent 6b8c2ef commit 357b401
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 208 deletions.
10 changes: 6 additions & 4 deletions lib/train/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,16 @@ def source_path
@path
end

# TODO: This methods needs to raise error if not implemented currently it set to nil since conversion
# to json currently breaks if raise error for non implementation of these mehtods by every backend file
# product_version is primarily used by Windows operating systems only and will be overwritten
# in Windows-related classes. Since this field is returned for all file objects, the acceptable
# default value is nil
def product_version
nil
end

# TODO: This methods needs to raise error if not implemented currently it set to nil since conversion
# to json currently breaks if raise error for non implementation of these mehtods by every backend file
# file_version is primarily used by Windows operating systems only and will be overwritten
# in Windows-related classes. Since this field is returned for all file objects, the acceptable
# default value is nil
def file_version
nil
end
Expand Down
2 changes: 1 addition & 1 deletion lib/train/file/local/unix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def sanitize_filename(path)
end

def stat
return @stat if defined? @stat
return @stat if defined?(@stat)

begin
file_stat =
Expand Down
2 changes: 1 addition & 1 deletion lib/train/file/local/windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def owner
end

def stat
return @stat if defined? @stat
return @stat if defined?(@stat)

begin
file_stat =
Expand Down
202 changes: 0 additions & 202 deletions test/unit/transports/local_file_test.rb

This file was deleted.

0 comments on commit 357b401

Please sign in to comment.