File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ func (s *WipeoutBuildPathIfBuildOptionsChanged) Run(ctx *types.Context) error {
45
45
json .Unmarshal ([]byte (previousBuildOptionsJson ), & prevOpts )
46
46
47
47
// If SketchLocation path is different but filename is the same, consider it equal
48
- if filepath .Base (opts .Get ("sketchLocation" )) == filepath .Base (prevOpts .Get ("sketchLocation" )) {
48
+ if prevOpts != nil && filepath .Base (opts .Get ("sketchLocation" )) == filepath .Base (prevOpts .Get ("sketchLocation" )) {
49
49
opts .Remove ("sketchLocation" )
50
50
prevOpts .Remove ("sketchLocation" )
51
51
}
52
52
53
53
// If options are not changed check if core has
54
- if opts .Equals (prevOpts ) {
54
+ if prevOpts != nil && opts .Equals (prevOpts ) {
55
55
// check if any of the files contained in the core folders has changed
56
56
// since the json was generated - like platform.txt or similar
57
57
// if so, trigger a "safety" wipe
You can’t perform that action at this time.
0 commit comments