mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 00:11:22 +00:00
Enable automatic code formatter with CI validation
This may be controversial but it we're doing it. Having code formatting needs to be consistent and a non-issue during code review. I'm willing modify the configuration if people see a strong need, but formatting needs to be present and enforced.
This commit is contained in:
@@ -44,9 +44,8 @@ public class PayloadRule implements TestRule {
|
||||
}
|
||||
|
||||
public InputStream asInputStream() throws FileNotFoundException {
|
||||
String name = resourceName.startsWith("/")
|
||||
? resourceName + type
|
||||
: testClass.getSimpleName() + "/" + resourceName + type;
|
||||
String name = resourceName.startsWith("/") ? resourceName + type
|
||||
: testClass.getSimpleName() + "/" + resourceName + type;
|
||||
InputStream stream = testClass.getResourceAsStream(name);
|
||||
if (stream == null) {
|
||||
throw new FileNotFoundException(String.format("Resource %s from class %s", name, testClass));
|
||||
|
||||
Reference in New Issue
Block a user