| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | package utils |
||
| 28 | func GetCached(fileName string) []string { |
||
| 29 | var oldSlice []string |
||
| 30 | |||
| 31 | oldContext := FileGetContents(getAbsPathToStorageFile(fileName)) |
||
| 32 | err := json.Unmarshal([]byte(oldContext), &oldSlice) |
||
| 33 | |||
| 34 | HandleError(err, "Unmarshal method returned error") |
||
| 35 | |||
| 36 | return oldSlice |
||
| 37 | } |
||
| 45 |