Skip to content

Commit 739c40d

Browse files
committed
logic simplified
1 parent d5124d5 commit 739c40d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/playlist.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,7 @@ Playlist::has_prefix(const std::string& prefix, const std::string& str)
204204
return false;
205205
}
206206

207-
if (strncasecmp(str.c_str(), prefix.c_str(), prefix.size()) == 0) {
208-
return true;
209-
}
210-
211-
return false;
207+
return (strncasecmp(str.c_str(), prefix.c_str(), prefix.size()) == 0);
212208
}
213209

214210
PlaylistDecoderType

0 commit comments

Comments
 (0)