mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 01:57:16 +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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue