Skip to content

Commit e3ee074

Browse files
fixup! src: improve node::Dotenv trimming
remove pos_start == pos_end check
1 parent 47d1a76 commit e3ee074

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/node_dotenv.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ std::string_view trim_spaces(std::string_view input) {
120120
return input.substr(pos_start);
121121
}
122122

123-
if (pos_start == pos_end) {
124-
return "";
125-
}
126-
127123
return input.substr(pos_start, pos_end - pos_start + 1);
128124
}
129125

0 commit comments

Comments
 (0)