Skip to content

Commit

Permalink
improve code format
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzk1 committed Jan 7, 2024
1 parent 22cbb3f commit 27f13ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@

/* the flink environment status */
public enum FlinkEnvStatus {

/* FLINK_HOME path invalid */
INVALID("path invalid"),

/* this add/update operation are feasible */
FEASIBLE("ok"),

/* defined flink name repeated */
NAME_REPEATED("name repeated"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public class FlinkEnvServiceImpl extends ServiceImpl<FlinkEnvMapper, FlinkEnv>
* two places will be checked: <br>
* 1) name repeated <br>
* 2) flink-dist repeated <br>
* -1) invalid path <br>
* 0) ok <br>
*/
@Override
public String check(FlinkEnv version) {
Expand All @@ -74,10 +72,8 @@ public String check(FlinkEnv version) {
return FlinkEnvStatus.FLINK_DIST_REPEATED.getMsg();
}
} else {

return FlinkEnvStatus.INVALID.getMsg();
}

return FlinkEnvStatus.FEASIBLE.getMsg();
}

Expand Down

0 comments on commit 27f13ff

Please sign in to comment.