Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Feb 2, 2025
1 parent be460db commit e9c028f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/imagine/imagine.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ DECLARE_MODULE_METHOD(imagine__fromwtiff) {
RETURN_PTR(image);
}

DECLARE_MODULE_METHOD(imagine__fromwwebp) {
DECLARE_MODULE_METHOD(imagine__fromwebp) {
ENFORCE_ARG_COUNT(fromwwebp, 1);
ENFORCE_ARG_TYPE(fromwwebp, 0, IS_FILE);

Expand Down Expand Up @@ -1745,7 +1745,7 @@ CREATE_MODULE_LOADER(imagine) {
{"fromwbmp", true, GET_MODULE_METHOD(imagine__fromwbmp)},
{"fromtga", true, GET_MODULE_METHOD(imagine__fromwtga)},
{"fromtiff", true, GET_MODULE_METHOD(imagine__fromwtiff)},
{"fromwebp", true, GET_MODULE_METHOD(imagine__fromwwebp)},
{"fromwebp", true, GET_MODULE_METHOD(imagine__fromwebp)},
{"fromavif", true, GET_MODULE_METHOD(imagine__fromwavif)},
{"fromfile", true, GET_MODULE_METHOD(imagine__fromfile)},

Expand Down
18 changes: 9 additions & 9 deletions packages/imagine/imagine/image.b
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -81,7 +81,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -106,7 +106,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -131,7 +131,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -156,7 +156,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -181,7 +181,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -206,7 +206,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -231,7 +231,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand All @@ -256,7 +256,7 @@ class Image {
raise Exception('file not found')
}

if src.mode().index_of('r') == -1{
if src.mode().index_of('r') == -1 {
raise Exception('file not readable')
}

Expand Down
14 changes: 7 additions & 7 deletions packages/imagine/imagine/resource.b
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand Down Expand Up @@ -1633,7 +1633,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand Down Expand Up @@ -1666,7 +1666,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand All @@ -1692,7 +1692,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand All @@ -1718,7 +1718,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand All @@ -1738,7 +1738,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand Down Expand Up @@ -1775,7 +1775,7 @@ class ImageResource {
dest = file(dest, 'wb')
}

if dest.mode().index_of('w') == -1{
if dest.mode().index_of('w') == -1 {
raise Exception('file not writable')
}

Expand Down

0 comments on commit e9c028f

Please sign in to comment.