Skip to content

Commit

Permalink
MIN Check argument for load_sample_*
Browse files Browse the repository at this point in the history
It should be a readable file
  • Loading branch information
luispedro committed Jul 20, 2022
1 parent e35b379 commit 80da4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NGLess/BuiltinModules/Samples.hs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ yamlFunctions =
[ Function
{ funcName = FuncName "load_sample_list"
, funcArgType = Just NGLString
, funcArgChecks = []
, funcArgChecks = [ArgCheckFileReadable]
, funcRetType = NGList NGLReadSet
, funcKwArgs = []
, funcAllowsAutoComprehension = True
Expand All @@ -136,7 +136,7 @@ yamlFunctions =
, Function
{ funcName = FuncName "load_sample_from_yaml"
, funcArgType = Just NGLString
, funcArgChecks = []
, funcArgChecks = [ArgCheckFileReadable]
, funcRetType = NGList NGLReadSet
, funcKwArgs = [ArgInformation "sample" True (NGList NGLString) []]
, funcAllowsAutoComprehension = True
Expand Down

0 comments on commit 80da4b0

Please sign in to comment.