Skip to content

Commit

Permalink
chore: remove unnecessary check (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
endlacer authored Dec 18, 2024
1 parent e5a85e4 commit 25e96c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-cookie-service/src/lib/cookie.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CookieService {
* @since: 1.0.0
*/
get(name: string): string {
if (this.documentIsAccessible && this.check(name)) {
if (this.check(name)) {
name = encodeURIComponent(name);

const regExp: RegExp = CookieService.getCookieRegExp(name);
Expand Down

0 comments on commit 25e96c9

Please sign in to comment.