From 85601264dd5b7bf5403cbaf1a9c678dda7a45335 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 1 Mar 2017 11:00:37 +0000 Subject: Enabled and autocorrect the CustomErrorClass cop --- lib/extracts_path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/extracts_path.rb') diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 9ece84cc469..dd864eea3fa 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -2,7 +2,7 @@ # file path string when combined in a request parameter module ExtractsPath # Raised when given an invalid file path - class InvalidPathError < StandardError; end + InvalidPathError = Class.new(StandardError) # Given a string containing both a Git tree-ish, such as a branch or tag, and # a filesystem path joined by forward slashes, attempts to separate the two. -- cgit v1.2.1