Skip to content

Commit

Permalink
Added simpliciation after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
chrfalch committed Jun 14, 2022
1 parent 43b9902 commit 97bdc4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions package/src/skia/core/Font.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ export const useFont = (
): SkFont | null => {
const typeface = useTypeface(font, onError);
return useMemo(() => {
if (typeface === null) {
return null;
} else if (typeface && size) {
if (typeface && size) {
return Skia.Font(typeface, size);
} else if (typeface && !size) {
return Skia.Font(typeface);
Expand Down

0 comments on commit 97bdc4c

Please sign in to comment.