Skip to content

Commit

Permalink
fix(app): Restore unix behavior
Browse files Browse the repository at this point in the history
change a conditional that had been pinned to FALSE to check for unix platforms
  • Loading branch information
AlexAxthelm committed Jan 30, 2024
1 parent 865df20 commit 7191d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/has_newline_at_end.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file_has_newline_at_end <- function(filepath) {
if (!is_file_accessible(filepath) || !is_text_file(filepath)) {
return(NA)
}
if (FALSE) {
if (.Platform$OS.type == "unix") {
newlines_in_final_char <- system(
command = paste(
"tail -c1 ", filepath, # tail -c1 returns last 1 byte
Expand Down

0 comments on commit 7191d19

Please sign in to comment.