When there is a return cmd in a function, and it's not the last line of this function, there should have a blank line after return cmd.
Signed-off-by: Xu Xijian hdxuxijian@163.com --- src/lib/web_backend.rb | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/lib/web_backend.rb b/src/lib/web_backend.rb index b8df6f4..1f7224e 100644 --- a/src/lib/web_backend.rb +++ b/src/lib/web_backend.rb @@ -220,7 +220,9 @@ end
def wrong_size?(size, from) return true if from.negative? || size.negative? + return true if from > 1000000 || size > 1000000 + return true if size + from > 1000000 end
@@ -344,6 +346,7 @@ def get_repo_url(urls) urls.each do |url| return url if url[0, 4] == 'http' end + urls[0] end