Skip to content

Commit

Permalink
fix configuration file update
Browse files Browse the repository at this point in the history
  • Loading branch information
shuwenwei committed Nov 29, 2024
1 parent 6eb576c commit 1fa513a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class ConfigurationFileUtils {
.add("# KIND, either express or implied. See the License for the")
.add("# specific language governing permissions and limitations")
.add("# under the License.")
.add(lineSeparator)
.toString();
private static Map<String, String> configuration2DefaultValue;

Expand Down Expand Up @@ -298,7 +299,7 @@ private static String readConfigLinesWithoutLicense(File file) throws IOExceptio
return "";
}
byte[] bytes = Files.readAllBytes(file.toPath());
String content = new String(bytes);
String content = new String(bytes) + lineSeparator;
return content.replace(license, "");
}

Expand Down

0 comments on commit 1fa513a

Please sign in to comment.