}
private boolean runConvert() throws IOException, InterruptedException {
- if (!profile.shouldRun()) {
+ if (!shouldRun(profile)) {
sendText("何もすることがありません");
return true;
}
public ConvertStopFlag getStopFlag() {
return super.getStopFlag();
}
+
+ /** @return 何か実行すべき処理があればtrue. */
+ private static boolean shouldRun(Profile profile) {
+ return profile.getOutputFileSetting().isConvert() || profile.needsDownload();
+ }
}
return loginInfo;
}
- /** @return 何か実行すべき処理があればtrue. */
- @Override
- public boolean shouldRun() {
- return getOutputFileSetting().isConvert() || needsDownload();
- }
-
/** @return 何かダウンロードするものがあればtrue. */
@Override
public boolean needsDownload() {