You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we are defining singular_resource, plural_resource and to_json in both modules, linters will warn you about "functions can not match because a previous function will always match"
defmoduleShopify.Variantdo@derive[Poison.Encoder]@singular"variant"@plural"variants"useShopify.Resource,import: [:find]# This will trigger warnings:useShopify.NestedResource,import: [:create,:all,:count,:update,:delete]# ...end
One way to solve this would be to move to_json and the resource functions in respective modules.
The text was updated successfully, but these errors were encountered:
Because we are defining
singular_resource
,plural_resource
andto_json
in both modules, linters will warn you about "functions can not match because a previous function will always match"One way to solve this would be to move
to_json
and the resource functions in respective modules.The text was updated successfully, but these errors were encountered: