Skip to content

Commit 730983a

Browse files
committed
Polishing
1 parent 1156eda commit 730983a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/mybatis/scripting/thymeleaf/support/TemplateFilePathProvider.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ static String providePath(Class<?> mapperType, Method mapperMethod, String datab
145145
if (exists(path)) {
146146
return path;
147147
}
148-
}
149-
if (fallbackDatabase) {
150-
path = pathGenerator.generatePath(mapperMethod.getDeclaringClass(), mapperMethod, null);
151-
if (exists(path)) {
152-
return path;
148+
if (fallbackDatabase) {
149+
path = pathGenerator.generatePath(mapperMethod.getDeclaringClass(), mapperMethod, null);
150+
if (exists(path)) {
151+
return path;
152+
}
153153
}
154154
}
155155
throw new IllegalStateException("The SQL template file not found. mapperType:[" + mapperType + "] mapperMethod:["

0 commit comments

Comments
 (0)