Skip to content

Commit

Permalink
chore(docs): remove else-if to make it more readable (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
redbar0n authored Jan 8, 2024
1 parent 744fd7d commit b690ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export default (context) => {
const { pathname } = new URL(context.request.url);
if (pathname === "/") {
return new Response("Hello from HatTip.");
} else if (pathname === "/about") {
}
if (pathname === "/about") {
return new Response(
"This HTTP handler works in Node.js, Cloudflare Workers, and Fastly.",
);
} else {
return new Response("Not found.", { status: 404 });
}
return new Response("Not found.", { status: 404 });
};
```

Expand Down

0 comments on commit b690ef5

Please sign in to comment.