Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
tools
tabacco
Commits
7f59ad7f
Commit
7f59ad7f
authored
Jun 17, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail if path is not set on the file source
It may be set on the atom instead.
parent
1db91b00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
handler_file.go
handler_file.go
+1
-6
No files found.
handler_file.go
View file @
7f59ad7f
...
...
@@ -2,7 +2,6 @@ package tabacco
import
(
"context"
"errors"
"path/filepath"
"git.autistici.org/ai3/tools/tabacco/jobs"
...
...
@@ -13,11 +12,7 @@ type fileHandler struct {
}
func
newFileHandler
(
name
string
,
params
Params
)
(
Handler
,
error
)
{
path
:=
params
.
Get
(
"path"
)
if
path
==
""
{
return
nil
,
errors
.
New
(
"path not set"
)
}
return
&
fileHandler
{
path
:
path
},
nil
return
&
fileHandler
{
path
:
params
.
Get
(
"path"
)},
nil
}
// Convert the atom to a path.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment