Skip to content

Commit

Permalink
refactor / cleanup to prev commit ref #751
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Aug 29, 2019
1 parent fcf1940 commit 9b1ff72
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ public class FeatureParser extends KarateParserBaseListener {
static final List<String> prefix = Arrays.asList("*","Given","When","Then","And","But");

public static Feature parse(File file) {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
String relativePath = FileUtils.toRelativeClassPath(file.toPath(), cl);
Resource resource = new Resource(file, relativePath);
Resource resource = new Resource(file.toPath());
return new FeatureParser(resource).feature;
}

Expand Down

0 comments on commit 9b1ff72

Please sign in to comment.