mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 18:17:15 +00:00
More Lint errors and add new binary
This commit is contained in:
parent
de2c363a4f
commit
d1c0c988a7
|
@ -34,7 +34,10 @@ func (e *Execution) Error() error {
|
||||||
|
|
||||||
func DeserializeExecution(payload string) *Execution {
|
func DeserializeExecution(payload string) *Execution {
|
||||||
var execution Execution
|
var execution Execution
|
||||||
json.Unmarshal([]byte(payload), &execution)
|
err := json.Unmarshal([]byte(payload), &execution)
|
||||||
|
if err != nil {
|
||||||
|
logging.Fatalf("Error encountered deserializing Execution object.\n%s", err)
|
||||||
|
}
|
||||||
return &execution
|
return &execution
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue